home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / technote / tn_256.hqx / TN.256.Stand-Alone Code Globals
Unknown  |  1989-10-09  |  41.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 4K dictionary default (weak)
99% file data default
100% TrID TTComp archive compressed (bin-4K) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 02 07 00 01 00 04 | 00 00 00 ff ff ff ff fc |........|........|
|00000010| 00 01 00 00 a5 c4 01 00 | 01 00 c9 00 a3 e6 00 88 |........|........|
|00000020| 00 88 00 00 a4 62 00 88 | 00 03 00 00 00 48 00 48 |.....b..|.....H.H|
|00000030| 00 00 00 00 02 da 02 28 | ff e1 ff e2 02 f9 02 46 |.......(|.......F|
|00000040| 03 47 05 28 03 fc 00 02 | 00 00 00 48 00 48 00 00 |.G.(....|...H.H..|
|00000050| 00 00 02 da 02 28 00 01 | 00 00 00 64 00 00 00 01 |.....(..|...d....|
|00000060| 00 01 01 01 00 00 00 01 | 7d 00 00 01 00 01 00 65 |........|}......e|
|00000070| 4b 5c 00 65 4b e8 80 23 | 00 00 00 0a 00 19 01 90 |K\.eK..#|........|
|00000080| 00 00 00 00 00 40 00 00 | 00 00 00 00 00 00 00 01 |.....@..|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 03 00 00 00 03 00 00 | 00 00 00 01 00 00 75 86 |........|......u.|
|000000b0| 00 40 00 00 73 9e 00 14 | 00 18 01 b8 ff f2 00 f4 |.@..s...|........|
|000000c0| ff f2 01 c2 ff f9 00 00 | ff ff ff ff ff ff 00 01 |........|........|
|000000d0| 00 00 00 01 00 00 00 00 | ff ff 00 00 73 b2 00 10 |........|....s...|
|000000e0| 00 00 01 96 00 02 ff f2 | 00 26 ff f2 00 f4 ff f2 |........|.&......|
|000000f0| 01 c2 ff f9 00 00 00 ff | ff ff ff ff 00 04 00 00 |........|........|
|00000100| 00 04 00 00 00 00 00 01 | 00 00 85 54 20 70 00 00 |........|...T p..|
|00000110| 79 5a 0b fa ff f2 00 26 | ff f2 00 f4 ff f2 01 c2 |yZ.....&|........|
|00000120| 00 00 00 00 ff 00 ff ff | ff ff 00 00 02 1c 03 01 |........|........|
|00000130| 00 01 0d 87 00 06 00 00 | 0c 00 00 14 00 01 0d 01 |........|........|
|00000140| 00 06 00 00 0c 00 00 14 | 00 57 00 00 f7 b0 f4 d6 |........|.W......|
|00000150| 73 04 5f 75 27 31 f2 e0 | f4 27 f6 70 f4 3b 11 81 |s._u'1..|.'.p.;..|
|00000160| f2 e0 f4 81 69 0f 48 53 | cb 5f 2e 0f 54 b1 0f 42 |....i.HS|._..T..B|
|00000170| 58 8f 2e 0f 54 b1 0f 4d | 63 0f 77 72 b0 6a a0 2b |X...T..M|c.wr.j.+|
|00000180| 10 f6 d5 f7 61 8f 2e 0f | 59 5f 75 f0 d0 00 00 06 |....a...|Y_u.....|
|00000190| 00 00 09 00 00 16 00 00 | 00 14 00 41 fa 5f 09 f5 |........|...A._..|
|000001a0| 41 cb 37 c6 a0 f4 e5 21 | 0f 23 f3 2f 34 f3 0f 2c |A.7....!|.#./4..,|
|000001b0| 0f 55 87 3f 67 0f 4d f5 | 0f 57 0d 54 0f 4e 53 f2 |.U.?g.M.|.W.T.NS.|
|000001c0| df 4d 6c 73 25 8b 0f 36 | f3 8f 30 f3 0f 30 0f 53 |.Mls%..6|..0..0.S|
|000001d0| f7 98 21 f6 d8 f0 d0 00 | 00 06 00 00 0c 00 00 14 |..!.....|........|
|000001e0| 00 47 fa 5f 09 f4 93 87 | 91 0f 4d 6c 73 25 8b f2 |.G._....|..Mls%..|
|000001f0| c0 f5 65 af 75 f6 d1 0f | 49 f4 9f 2c 0f 54 b1 0f |..e.u...|I..,.T..|
|00000200| 4d 1f 6d 54 f7 90 f4 d6 | 36 f6 71 40 f2 60 f5 4b |M.mT....|6.q@.`.K|
|00000210| 10 f5 31 f6 7f 6d 13 20 | f4 c5 69 14 f0 d0 00 12 |..1..m. |..i.....|
|00000220| 00 00 0c 00 00 14 00 02 | 0c 02 00 14 00 12 0c 00 |........|........|
|00000230| 00 14 00 12 00 00 00 00 | 00 00 f4 2f 45 f4 7f 49 |........|.../E..I|
|00000240| f4 ef 0d 00 00 06 00 00 | 09 00 00 16 00 00 ff d6 |........|........|
|00000250| 00 0c 03 be 00 0d 4d 41 | 47 49 43 50 49 43 11 01 |......MA|GICPIC..|
|00000260| ff 00 00 00 ff d6 00 7c | 03 be 00 0d 4d 41 47 49 |.......||....MAGI|
|00000270| 43 50 49 43 11 01 ff 00 | 00 17 f5 06 8c 6a 0f 46 |CPIC....|.....j.F|
|00000280| 7a 10 f2 8f 53 54 21 4f | 2e ef 29 f0 d0 00 00 06 |z...ST!O|..).....|
|00000290| 00 00 0c 01 00 14 00 00 | ff d6 00 29 03 be 00 0d |........|...)....|
|000002a0| 4d 41 47 49 43 50 49 43 | 11 01 ff 06 00 09 01 dd |MAGICPIC|........|
|000002b0| 03 00 00 00 00 09 02 07 | 02 07 02 26 02 26 02 26 |........|...&.&.&|
|000002c0| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 00 01 |.&.&.&.&|.&.&.&..|
|000002d0| 0d 01 00 06 00 00 0c 00 | 00 14 00 09 01 dd 03 0a |........|........|
|000002e0| 00 00 00 09 00 24 00 48 | 00 6c 00 90 00 b4 00 d8 |.....$.H|.l......|
|000002f0| 00 fc 01 20 01 44 01 68 | 02 07 02 07 00 01 0d 00 |... .D.h|........|
|00000300| 00 06 00 00 0c 00 00 14 | 00 01 0d 02 00 06 00 00 |........|........|
|00000310| 0c 00 00 14 00 01 0d 01 | 00 06 00 00 0c 00 00 14 |........|........|
|00000320| 00 01 0d 03 00 06 00 00 | 0c 00 00 14 00 18 f4 d6 |........|........|
|00000330| f6 b1 0f 46 7a 10 f2 8f | 53 54 21 4f 2e f6 d6 f6 |...Fz...|ST!O....|
|00000340| b1 f2 9f 0d 00 06 00 00 | 0c 01 00 14 00 01 0d 01 |........|........|
|00000350| 00 06 00 00 0c 00 00 14 | 00 14 00 01 0d 02 00 06 |........|........|
|00000360| 00 00 0c 00 00 14 00 01 | 0d 00 00 06 00 00 0c 00 |........|........|
|00000370| 00 14 00 11 f4 8f 79 e1 | 4f 43 64 90 f5 3c 47 e2 |......y.|OCd..<G.|
|00000380| f0 d0 00 06 00 00 0c 01 | 00 14 00 00 00 06 00 00 |........|........|
|00000390| 0c 00 00 14 00 38 57 72 | 69 74 74 65 6e 20 62 79 |.....8Wr|itten by|
|000003a0| 3a 09 4b 65 69 74 68 20 | 52 6f 6c 6c 69 6e 20 26 |:.Keith |Rollin &|
|000003b0| 20 4b 65 69 74 68 65 6e | 20 48 61 79 65 6e 67 61 | Keithen| Hayenga|
|000003c0| 09 4f 63 74 6f 62 65 72 | 20 31 39 38 39 0d 00 06 |.October| 1989...|
|000003d0| 00 00 0c 00 00 14 00 01 | 0d 01 00 06 00 00 0c 00 |........|........|
|000003e0| 00 14 00 01 0d 00 00 06 | 00 00 0c 00 00 14 00 01 |........|........|
|000003f0| 0d 00 00 06 00 00 0c 00 | 00 14 00 07 09 09 54 59 |........|......TY|
|00000400| 50 45 0d ff 00 06 00 00 | 09 00 00 16 00 01 0d 00 |PE......|........|
|00000410| 00 06 00 00 0c 00 00 14 | 02 26 00 08 09 09 09 45 |........|.&.....E|
|00000420| 4e 44 3b 0d 00 06 00 00 | 09 00 00 16 00 45 f2 4f |ND;.....|.....E.O|
|00000430| 5a f2 bf 7d 00 00 00 0f | 7b 0f 54 b7 80 6a a5 f7 |Z..}....|{.T..j..|
|00000440| 78 02 b1 0f 4c 73 f6 b1 | 40 25 0d 73 90 f2 2f 45 |x...Ls..|@%.s../E|
|00000450| f4 ef 54 f5 2f 59 f5 0f | 4f f4 9f 4e f5 4f 22 0f |..T./Y..|O..N.O".|
|00000460| 77 72 b5 f7 52 05 f7 54 | f0 d0 00 06 00 00 09 00 |wr..R..T|........|
|00000470| 00 16 00 06 00 00 09 00 | 00 16 00 01 0d 02 00 06 |........|........|
|00000480| 00 00 0c 00 00 14 00 08 | 09 09 09 45 4e 44 3b 0d |........|...END;.|
|00000490| 00 06 00 00 09 00 00 16 | 00 09 01 dd 03 01 00 00 |........|........|
|000004a0| 00 09 01 c2 02 26 02 26 | 00 00 00 00 00 00 00 00 |.....&.&|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 35 fa 5f 09 f5 |........|...5._..|
|000004c0| 41 cb 37 c6 a0 f4 e5 21 | 0f 23 f3 1f 31 f3 0f 2c |A.7....!|.#..1..,|
|000004d0| 0f 4d f5 0f 57 f3 a0 f5 | 74 72 73 f6 70 f5 32 63 |.M..W...|trs.p.2c|
|000004e0| 9f 2d f4 1a 53 10 f4 35 | 91 f0 d0 00 00 06 00 00 |.-..S..5|........|
|000004f0| 0c 00 00 14 68 f6 b0 e4 | 1f 76 00 30 fa 5f 09 f5 |....h...|.v.0._..|
|00000500| 41 cb 37 c6 a0 f4 e5 21 | 0f 23 f3 2f 30 f3 8f 2c |A.7....!|.#./0..,|
|00000510| 0f 53 12 27 3f 67 06 39 | 0f 52 18 25 47 3f 67 0f |.S.'?g.9|.R.%G?g.|
|00000520| 41 f3 5f 0d 00 06 00 00 | 0c 00 00 14 00 00 00 06 |A._.....|........|
|00000530| 00 00 0c 00 00 14 00 01 | 0d 01 00 06 00 00 0c 00 |........|........|
|00000540| 00 14 00 0d 44 65 61 72 | 20 43 6c 61 72 75 73 2c |....Dear| Clarus,|
|00000550| 0d ff 00 06 00 00 0e 01 | 00 14 00 01 0d ff 00 06 |........|........|
|00000560| 00 00 0c 00 00 14 01 af | 49 20 77 61 73 20 61 74 |........|I was at|
|00000570| 74 65 6e 64 69 6e 67 20 | 61 20 73 6f 63 69 61 6c |tending |a social|
|00000580| 20 67 61 74 68 65 72 69 | 6e 67 20 6f 66 20 50 43 | gatheri|ng of PC|
|00000590| 20 61 6e 64 20 55 4e 49 | 58 20 70 72 6f 67 72 61 | and UNI|X progra|
|000005a0| 6d 6d 65 72 73 20 74 68 | 65 20 6f 74 68 65 72 20 |mmers th|e other |
|000005b0| 64 61 79 2c 20 77 68 65 | 6e 20 73 6f 6d 65 20 6f |day, whe|n some o|
|000005c0| 66 20 6d 79 20 66 72 69 | 65 6e 64 73 20 73 74 61 |f my fri|ends sta|
|000005d0| 72 74 69 6e 67 20 64 69 | 73 63 75 73 73 69 6e 67 |rting di|scussing|
|000005e0| 20 6d 6f 64 75 6c 61 72 | 20 63 6f 64 65 20 73 65 | modular| code se|
|000005f0| 67 6d 65 6e 74 73 2e 20 | 20 57 65 20 77 65 72 65 |gments. | We were|
|00000600| 20 73 70 65 61 6b 69 6e | 67 20 6f 66 20 74 6f 73 | speakin|g of tos|
|00000610| 73 69 6e 67 20 6f 66 66 | 20 72 6f 75 74 69 6e 65 |sing off| routine|
|00000620| 73 20 69 6e 20 50 61 73 | 63 61 6c 20 6f 72 20 43 |s in Pas|cal or C|
|00000630| 2c 20 6c 69 6e 6b 69 6e | 67 2c 20 73 61 76 69 6e |, linkin|g, savin|
|00000640| 67 20 74 68 65 6d 20 6f | 66 66 20 74 6f 20 64 69 |g them o|ff to di|
|00000650| 73 6b 2c 20 61 6e 64 20 | 74 68 65 6e 20 68 61 6d |sk, and |then ham|
|00000660| 6d 65 72 69 6e 67 20 6f | 75 74 20 61 20 73 68 65 |mering o|ut a she|
|00000670| 6c 6c 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 74 |ll appli|cation t|
|00000680| 68 61 74 20 77 6f 75 6c | 64 20 6c 6f 61 64 20 61 |hat woul|d load a|
|00000690| 6e 64 20 65 78 65 63 75 | 74 65 20 74 68 65 6d 20 |nd execu|te them |
|000006a0| 61 74 20 72 75 6e 2d 74 | 69 6d 65 2e 20 20 47 65 |at run-t|ime. Ge|
|000006b0| 6e 65 72 61 6c 6c 79 2c | 20 61 20 67 6f 6f 64 20 |nerally,| a good |
|000006c0| 74 69 6d 65 20 77 61 73 | 20 68 61 64 20 62 79 20 |time was| had by |
|000006d0| 61 6c 6c 2e 20 20 54 68 | 65 20 68 6f 73 74 65 73 |all. Th|e hostes|
|000006e0| 73 20 77 61 73 20 70 61 | 72 74 69 63 75 6c 61 72 |s was pa|rticular|
|000006f0| 6c 79 20 64 61 7a 7a 6c | 69 6e 67 20 69 6e 20 68 |ly dazzl|ing in h|
|00000700| 65 72 20 d2 52 75 64 65 | 20 44 6f 67 d3 20 74 2d |er .Rude| Dog. t-|
|00000710| 73 68 69 72 74 2e 0d 00 | 00 06 00 00 0c 00 00 14 |shirt...|........|
|00000720| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 01 4e 48 6f |........|.....NHo|
|00000730| 77 65 76 65 72 2c 20 72 | 65 63 65 6e 74 6c 79 20 |wever, r|ecently |
|00000740| 73 6f 6d 65 74 68 69 6e | 67 20 68 61 70 70 65 6e |somethin|g happen|
|00000750| 65 64 20 74 68 61 74 20 | 63 68 61 6e 67 65 64 20 |ed that |changed |
|00000760| 6d 79 20 77 6f 72 6c 64 | 2e 20 20 49 20 77 61 73 |my world|. I was|
|00000770| 20 6f 66 66 65 72 65 64 | 20 74 68 65 20 63 68 61 | offered| the cha|
|00000780| 6e 63 65 20 74 6f 20 70 | 72 6f 67 72 61 6d 20 61 |nce to p|rogram a|
|00000790| 20 4d 61 63 69 6e 74 6f | 73 68 2e 20 20 49 20 63 | Macinto|sh. I c|
|000007a0| 6f 75 6c 64 6e d5 74 20 | 62 65 6c 69 65 76 65 20 |ouldn.t |believe |
|000007b0| 69 74 20 77 68 65 6e 20 | 49 20 68 65 61 72 64 20 |it when |I heard |
|000007c0| 69 74 2c 20 61 6e 64 2c | 20 6f 66 20 63 6f 75 72 |it, and,| of cour|
|000007d0| 73 65 2c 20 49 20 6a 75 | 6d 70 65 64 20 61 74 20 |se, I ju|mped at |
|000007e0| 74 68 65 20 63 68 61 6e | 63 65 2e 20 20 49 d5 76 |the chan|ce. I.v|
|000007f0| 65 20 62 65 65 6e 20 70 | 72 6f 67 72 61 6d 6d 69 |e been p|rogrammi|
|00000800| 6e 67 20 66 6f 72 20 6d | 61 6e 79 20 79 65 61 72 |ng for m|any year|
|00000810| 73 2c 20 62 75 74 20 68 | 61 76 65 20 6e 65 76 65 |s, but h|ave neve|
|00000820| 72 20 75 73 65 64 20 6d | 79 20 61 62 69 6c 69 74 |r used m|y abilit|
|00000830| 69 65 73 20 74 6f 20 74 | 68 65 69 72 20 66 75 6c |ies to t|heir ful|
|00000840| 6c 65 73 74 20 70 6f 74 | 65 6e 74 69 61 6c 2e 20 |lest pot|ential. |
|00000850| 20 4e 6f 77 20 49 20 63 | 6f 75 6c 64 20 72 65 61 | Now I c|ould rea|
|00000860| 6c 69 7a 65 20 61 6c 6c | 20 6f 66 20 74 68 61 74 |lize all| of that|
|00000870| 2c 20 61 6e 64 20 6d 6f | 72 65 2e 0d 00 06 00 00 |, and mo|re......|
|00000880| 0c 00 00 14 00 01 0d 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00000890| 01 65 53 6f 20 49 20 6c | 6f 61 64 65 64 20 75 70 |.eSo I l|oaded up|
|000008a0| 20 6f 6e 20 65 76 65 72 | 79 74 68 69 6e 67 20 49 | on ever|ything I|
|000008b0| 20 6e 65 65 64 65 64 3a | 20 20 4d 61 63 69 6e 74 | needed:| Macint|
|000008c0| 6f 73 68 20 49 49 63 69 | 2c 20 74 6f 6e 73 20 6f |osh IIci|, tons o|
|000008d0| 66 20 52 41 4d 2c 20 61 | 6c 6c 20 66 69 76 65 20 |f RAM, a|ll five |
|000008e0| 76 6f 6c 75 6d 65 73 20 | 6f 66 20 49 6e 73 69 64 |volumes |of Insid|
|000008f0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 2c 20 65 76 65 |e Macint|osh, eve|
|00000900| 72 79 20 73 69 6e 67 6c | 65 20 54 65 63 68 6e 69 |ry singl|e Techni|
|00000910| 63 61 6c 20 4e 6f 74 65 | 2c 20 61 6e 64 20 74 68 |cal Note|, and th|
|00000920| 65 20 70 61 72 61 67 6f | 6e 20 6f 66 20 64 65 76 |e parago|n of dev|
|00000930| 65 6c 6f 70 6d 65 6e 74 | 20 73 79 73 74 65 6d 73 |elopment| systems|
|00000940| 2c 20 4d 50 57 2e 20 20 | 49 6e 20 73 68 6f 72 74 |, MPW. |In short|
|00000950| 20 74 69 6d 65 20 49 20 | 68 61 64 20 6d 79 20 73 | time I |had my s|
|00000960| 68 65 6c 6c 20 64 6f 6e | 65 2c 20 61 6e 64 20 49 |hell don|e, and I|
|00000970| 20 74 68 65 6e 20 73 65 | 74 20 69 6e 74 6f 20 70 | then se|t into p|
|00000980| 72 6f 67 72 61 6d 6d 69 | 6e 67 20 74 68 65 20 73 |rogrammi|ng the s|
|00000990| 74 61 6e 64 2d 61 6c 6f | 6e 65 20 6d 6f 64 75 6c |tand-alo|ne modul|
|000009a0| 65 73 20 74 68 61 74 20 | 77 6f 75 6c 64 20 62 65 |es that |would be|
|000009b0| 20 6c 6f 61 64 65 64 20 | 61 6e 64 20 65 78 65 63 | loaded |and exec|
|000009c0| 75 74 65 64 20 61 74 20 | 72 75 6e 2d 74 69 6d 65 |uted at |run-time|
|000009d0| 2e 20 20 56 65 72 79 20 | 71 75 69 63 6b 6c 79 2c |. Very |quickly,|
|000009e0| 20 49 20 72 61 6e 20 69 | 6e 74 6f 20 61 20 70 72 | I ran i|nto a pr|
|000009f0| 6f 62 6c 65 6d 2e 0d 00 | 00 12 00 00 0c 00 00 14 |oblem...|........|
|00000a00| 00 59 0c 02 00 14 00 69 | 0c 00 00 14 00 01 0d 00 |.Y.....i|........|
|00000a10| 00 06 00 00 0c 00 00 14 | 01 64 43 6c 61 72 75 73 |........|.dClarus|
|00000a20| 2c 20 77 6f 75 6c 64 20 | 79 6f 75 20 62 65 6c 69 |, would |you beli|
|00000a30| 65 76 65 20 74 68 61 74 | 20 4d 50 57 20 64 6f 65 |eve that| MPW doe|
|00000a40| 73 6e d5 74 20 61 6c 6c | 6f 77 20 67 6c 6f 62 61 |sn.t all|ow globa|
|00000a50| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 69 6e 20 73 |l variab|les in s|
|00000a60| 74 61 6e 64 2d 61 6c 6f | 6e 65 20 63 6f 64 65 3f |tand-alo|ne code?|
|00000a70| 20 20 57 68 65 6e 20 49 | 20 74 72 79 20 75 73 69 | When I| try usi|
|00000a80| 6e 67 20 74 68 65 6d 2c | 20 74 68 65 20 4d 50 57 |ng them,| the MPW|
|00000a90| 20 6c 69 6e 6b 65 72 20 | 67 69 76 65 73 20 6d 65 | linker |gives me|
|00000aa0| 20 73 6f 6d 65 20 73 6f | 72 74 20 6f 66 20 62 6f | some so|rt of bo|
|00000ab0| 67 75 73 20 6d 65 73 73 | 61 67 65 20 6c 69 6b 65 |gus mess|age like|
|00000ac0| 2c 20 d2 44 61 74 61 20 | 49 6e 69 74 69 61 6c 69 |, .Data |Initiali|
|00000ad0| 7a 61 74 69 6f 6e 20 63 | 6f 64 65 20 69 73 20 6e |zation c|ode is n|
|00000ae0| 6f 74 20 62 65 69 6e 67 | 20 63 61 6c 6c 65 64 2e |ot being| called.|
|00000af0| 20 28 45 72 72 6f 72 20 | 35 37 29 2e d3 20 20 49 | (Error |57).. I|
|00000b00| 20 6d 65 61 6e 2c 20 6f | 74 68 65 72 20 64 65 76 | mean, o|ther dev|
|00000b10| 65 6c 6f 70 6d 65 6e 74 | 20 73 79 73 74 65 6d 73 |elopment| systems|
|00000b20| 20 6d 61 6e 61 67 65 20 | 69 74 2e 20 20 49 73 6e | manage |it. Isn|
|00000b30| d5 74 20 74 68 65 20 4d | 61 63 69 6e 74 6f 73 68 |.t the M|acintosh|
|00000b40| 20 73 75 70 70 6f 73 65 | 64 20 74 6f 20 62 65 20 | suppose|d to be |
|00000b50| 61 20 74 6f 74 61 6c 6c | 79 20 66 6c 65 78 69 62 |a totall|y flexib|
|00000b60| 6c 65 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 20 74 |le envir|onment t|
|00000b70| 6f 20 70 72 6f 67 72 61 | 6d 20 69 6e 3f 0d 00 06 |o progra|m in?...|
|00000b80| 00 00 0c 00 00 14 00 01 | 0d 00 00 06 00 00 0c 00 |........|........|
|00000b90| 00 14 00 38 57 68 61 74 | 20 64 6f 20 49 20 64 6f |...8What| do I do|
|00000ba0| 3f 20 20 41 6c 6c 20 6f | 66 20 6d 79 20 50 43 20 |? All o|f my PC |
|00000bb0| 66 72 69 65 6e 64 73 20 | 61 72 65 20 6c 61 75 67 |friends |are laug|
|00000bc0| 68 69 6e 67 20 61 74 20 | 6d 65 2e 0d 00 06 00 00 |hing at |me......|
|00000bd0| 0c 00 00 14 00 37 09 09 | 50 52 4f 43 45 44 55 52 |.....7..|PROCEDUR|
|00000be0| 45 20 4d 61 69 6e 28 63 | 6f 64 65 3a 20 69 6e 74 |E Main(c|ode: int|
|00000bf0| 65 67 65 72 3b 20 56 41 | 52 20 41 35 52 65 66 3a |eger; VA|R A5Ref:|
|00000c00| 20 41 35 52 65 66 54 79 | 70 65 29 3b 0d 00 00 06 | A5RefTy|pe);....|
|00000c10| 00 00 09 00 00 16 00 00 | ff d6 00 13 03 be 00 0d |........|........|
|00000c20| 4d 41 47 49 43 50 49 43 | 11 01 ff 46 00 01 0d 00 |MAGICPIC|...F....|
|00000c30| 00 06 00 00 0c 00 00 14 | 00 09 44 65 61 72 20 50 |........|..Dear P|
|00000c40| 43 2c 0d 00 00 06 00 00 | 0e 01 00 14 00 01 0d 00 |C,......|........|
|00000c50| 00 06 00 00 0c 00 00 14 | 02 0a 54 68 65 20 70 72 |........|..The pr|
|00000c60| 6f 62 6c 65 6d 20 77 69 | 74 68 20 61 63 63 65 73 |oblem wi|th acces|
|00000c70| 73 69 6e 67 20 67 6c 6f | 62 61 6c 20 76 61 72 69 |sing glo|bal vari|
|00000c80| 61 62 6c 65 73 20 66 72 | 6f 6d 20 73 74 61 6e 64 |ables fr|om stand|
|00000c90| 2d 61 6c 6f 6e 65 20 63 | 6f 64 65 20 72 65 73 6f |-alone c|ode reso|
|00000ca0| 75 72 63 65 73 20 69 73 | 20 61 20 76 65 72 79 20 |urces is| a very |
|00000cb0| 61 6e 63 69 65 6e 74 20 | 61 6e 64 20 74 69 6d 65 |ancient |and time|
|00000cc0| 2d 68 6f 6e 6f 72 65 64 | 20 6f 6e 65 2e 20 20 49 |-honored| one. I|
|00000cd0| 74 20 61 6c 6c 20 68 69 | 6e 67 65 73 20 6f 6e 20 |t all hi|nges on |
|00000ce0| 74 68 65 20 61 76 61 69 | 6c 61 62 69 6c 69 74 79 |the avai|lability|
|00000cf0| 20 6f 66 20 74 68 65 20 | 41 35 20 72 65 67 69 73 | of the |A5 regis|
|00000d00| 74 65 72 2e 20 20 54 68 | 69 73 20 72 65 67 69 73 |ter. Th|is regis|
|00000d10| 74 65 72 20 69 73 20 75 | 73 65 64 20 74 6f 20 61 |ter is u|sed to a|
|00000d20| 63 63 65 73 73 20 61 20 | 36 34 4b 20 61 72 65 61 |ccess a |64K area|
|00000d30| 20 6f 66 20 6d 65 6d 6f | 72 79 20 74 68 61 74 20 | of memo|ry that |
|00000d40| 63 6f 6e 74 61 69 6e 73 | 20 61 6e 20 61 70 70 6c |contains| an appl|
|00000d50| 69 63 61 74 69 6f 6e d5 | 73 20 6a 75 6d 70 20 74 |ication.|s jump t|
|00000d60| 61 62 6c 65 2c 20 67 6c | 6f 62 61 6c 20 76 61 72 |able, gl|obal var|
|00000d70| 69 61 62 6c 65 73 2c 20 | 61 6e 64 20 33 32 20 72 |iables, |and 32 r|
|00000d80| 61 74 68 65 72 20 6d 79 | 73 74 65 72 69 6f 75 73 |ather my|sterious|
|00000d90| 20 62 79 74 65 73 20 63 | 61 6c 6c 65 64 20 74 68 | bytes c|alled th|
|00000da0| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |e applic|ation.s |
|00000db0| 70 61 72 61 6d 65 74 65 | 72 73 2e 20 20 42 65 63 |paramete|rs. Bec|
|00000dc0| 61 75 73 65 20 79 6f 75 | 20 61 72 65 20 73 68 61 |ause you| are sha|
|00000dd0| 72 69 6e 67 20 74 68 65 | 20 73 61 6d 65 20 68 65 |ring the| same he|
|00000de0| 61 70 20 61 73 20 61 6e | 20 61 70 70 6c 69 63 61 |ap as an| applica|
|00000df0| 74 69 6f 6e 20 77 68 65 | 6e 20 79 6f 75 72 20 73 |tion whe|n your s|
|00000e00| 74 61 6e 64 2d 61 6c 6f | 6e 65 20 63 6f 64 65 20 |tand-alo|ne code |
|00000e10| 72 65 73 6f 75 72 63 65 | 20 69 73 20 65 78 65 63 |resource| is exec|
|00000e20| 75 74 65 64 2c 20 74 68 | 65 20 61 70 70 6c 69 63 |uted, th|e applic|
|00000e30| 61 74 69 6f 6e 20 69 73 | 20 62 75 73 79 20 75 73 |ation is| busy us|
|00000e40| 69 6e 67 20 41 35 20 61 | 6e 64 20 77 6f 6e d5 74 |ing A5 a|nd won.t|
|00000e50| 20 73 68 61 72 65 20 69 | 74 20 77 69 74 68 20 79 | share i|t with y|
|00000e60| 6f 75 2e 0d 00 1e 00 00 | 0c 00 00 14 00 9e 0c 00 |ou......|........|
|00000e70| 00 16 00 a0 0c 00 00 14 | 01 ea 0c 00 00 16 01 ec |........|........|
|00000e80| 0c 00 00 14 01 d3 f5 4b | 62 fd 58 02 b1 0c 53 da |.......K|b.X...S.|
|00000e90| 7c 2f 2e 00 f5 35 0f 77 | b6 2f d5 80 2b 10 85 af ||/...5.w|./..+...|
|00000ea0| 75 27 53 f3 f0 0f 52 1d | a1 c2 75 30 f7 5e 53 0f |u'S...R.|..u0.^S.|
|00000eb0| 79 5f 75 40 f7 95 f7 52 | bd f7 5a 09 6f 79 80 8b |y_u@...R|..Z.oy..|
|00000ec0| 5f 75 a9 0e 45 f7 67 91 | 0f 79 5f 75 0f 77 72 b0 |_u..E.g.|.y_u.wr.|
|00000ed0| 63 06 38 f7 71 4f 2e 00 | f4 18 0f 77 72 b0 63 f7 |c.8.qO..|...wr.c.|
|00000ee0| 90 f6 2f 75 aa f7 90 f7 | 7b 50 f7 75 3f d5 20 8b |../u....|{P.u?. .|
|00000ef0| 64 10 b7 80 25 f7 98 0f | 77 72 b0 f7 95 f7 5f 2c |d...%...|wr...._,|
|00000f00| 0f 79 5f 75 fd 5a a0 b6 | f7 61 02 50 f6 75 06 39 |.y_u.Z..|.a.P.u.9|
|00000f10| 02 6f 6b 10 2b 1f 6d 06 | f7 76 f7 90 f6 2f 79 0d |.ok.+.m.|.v.../y.|
|00000f20| 54 c1 0f 28 63 06 c2 02 | b6 20 f4 3a 64 f7 58 0d |T..(c...|. .:d.X.|
|00000f30| f7 5a af 79 01 39 54 81 | 8f 29 f2 e0 0f 59 5f 75 |.Z.y.9T.|.)...Y_u|
|00000f40| 03 11 90 25 0f 77 47 21 | 0d 5f 75 40 45 f7 52 73 |...%.wG!|._u@E.Rs|
|00000f50| 18 f3 a0 f4 d6 f6 b1 f4 | 1f 35 f5 75 4a 9f 2c 0f |........|.5.uJ.,.|
|00000f60| 53 12 f4 1f 35 f5 75 4a | 9f 2c 0f 52 18 25 41 f4 |S...5.uJ|.,.R.%A.|
|00000f70| 1f 35 f5 75 4a 9f 2c 06 | 39 0f 44 78 e5 81 f4 1f |.5.uJ.,.|9.Dx....|
|00000f80| 35 f5 75 4a 9f 2e 00 f4 | 2f 79 0c 6a a7 3f 67 02 |5.uJ....|/y.j.?g.|
|00000f90| b1 81 04 5f 75 27 31 80 | 62 02 b1 04 7f 67 b2 02 |..._u'1.|b....g..|
|00000fa0| 7f 6d 1f 2c 0f 79 5f 75 | 0c 63 0f 6d 63 6f 67 10 |.m.,.y_u|.c.mcog.|
|00000fb0| f7 95 f7 54 05 f7 73 0f | 41 f3 50 f7 75 4a 9f 2c |...T..s.|A.P.uJ.,|
|00000fc0| 08 1e 64 62 10 d4 5f 6d | 02 b1 0b 58 20 6e ea 7c |..db.._m|...X n.||
|00000fd0| 62 75 3f d5 8f 2e f0 d0 | 00 42 00 00 0c 00 00 14 |bu?.....|.B......|
|00000fe0| 01 20 0c 00 00 16 01 2b | 0c 00 00 14 01 2d 0c 00 |. .....+|.....-..|
|00000ff0| 00 16 01 37 0c 00 00 14 | 01 39 0c 00 00 16 01 47 |...7....|.9.....G|
|00001000| 0c 00 00 14 01 4d 0c 00 | 00 16 01 5b 0c 00 00 14 |.....M..|...[....|
|00001010| 01 a3 0c 00 00 16 01 a5 | 0c 00 00 14 00 09 01 dd |........|........|
|00001020| 03 0a 00 00 00 09 00 24 | 00 48 00 6c 00 90 00 b4 |.......$|.H.l....|
|00001030| 00 d8 00 fc 01 20 01 44 | 01 68 02 07 02 07 00 09 |..... .D|.h......|
|00001040| 01 dd 03 00 00 00 00 09 | 02 02 02 02 02 26 02 26 |........|.....&.&|
|00001050| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001060| 00 09 01 dd 03 00 00 00 | 00 09 02 02 02 02 02 26 |........|.......&|
|00001070| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001080| 02 26 00 09 01 dd 03 0a | 00 00 00 09 00 24 00 48 |.&......|.....$.H|
|00001090| 00 6c 00 90 00 b4 00 d8 | 00 fc 01 20 01 44 01 68 |.l......|... .D.h|
|000010a0| 02 07 02 07 01 a5 0c 00 | 00 14 00 01 0d 00 00 06 |........|........|
|000010b0| 00 00 0c 00 00 14 01 4b | 54 68 65 72 65 20 61 72 |.......K|There ar|
|000010c0| 65 20 62 61 73 69 63 61 | 6c 6c 79 20 74 77 6f 20 |e basica|lly two |
|000010d0| 74 79 70 65 73 20 6f 66 | 20 73 74 61 6e 64 2d 61 |types of| stand-a|
|000010e0| 6c 6f 6e 65 20 63 6f 64 | 65 20 74 68 61 74 20 6e |lone cod|e that n|
|000010f0| 65 65 64 20 67 6c 6f 62 | 61 6c 73 3a 20 74 68 65 |eed glob|als: the|
|00001100| 20 6b 69 6e 64 20 74 68 | 61 74 20 6a 75 73 74 20 | kind th|at just |
|00001110| 6e 65 65 64 73 20 73 6f | 6d 65 20 62 65 63 61 75 |needs so|me becau|
|00001120| 73 65 20 74 68 65 20 70 | 72 6f 67 72 61 6d 6d 65 |se the p|rogramme|
|00001130| 72 20 69 73 20 74 6f 6f | 20 6c 61 7a 79 20 74 6f |r is too| lazy to|
|00001140| 20 70 61 73 73 20 6c 6f | 63 61 6c 20 76 61 72 69 | pass lo|cal vari|
|00001150| 61 62 6c 65 73 20 61 73 | 20 70 61 72 61 6d 65 74 |ables as| paramet|
|00001160| 65 72 73 20 74 6f 20 73 | 75 62 72 6f 75 74 69 6e |ers to s|ubroutin|
|00001170| 65 73 20 61 6e 64 20 74 | 68 65 20 6b 69 6e 64 20 |es and t|he kind |
|00001180| 74 68 61 74 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 |that wou|ld like |
|00001190| 73 6f 6d 65 20 73 6f 72 | 74 20 6f 66 20 70 65 72 |some sor|t of per|
|000011a0| 73 69 73 74 65 6e 63 65 | 20 69 6e 20 69 74 73 20 |sistence| in its |
|000011b0| 64 61 74 61 20 28 69 2e | 65 2e 2c 20 74 68 65 20 |data (i.|e., the |
|000011c0| 64 61 74 61 20 68 61 6e | 67 73 20 61 72 6f 75 6e |data han|gs aroun|
|000011d0| 64 20 69 6e 20 6d 65 6d | 6f 72 79 20 61 63 72 6f |d in mem|ory acro|
|000011e0| 73 73 20 63 61 6c 6c 73 | 20 74 6f 20 74 68 65 20 |ss calls| to the |
|000011f0| 73 74 61 6e 64 2d 61 6c | 6f 6e 65 20 63 6f 64 65 |stand-al|one code|
|00001200| 29 2e 0d 00 00 06 00 00 | 0c 00 00 14 00 01 0d 00 |).......|........|
|00001210| 00 06 00 00 0c 00 00 14 | 00 ee 54 68 65 20 66 69 |........|..The fi|
|00001220| 72 73 74 20 6b 69 6e 64 | 20 69 73 20 65 61 73 79 |rst kind| is easy|
|00001230| 2e 20 20 57 68 65 6e 20 | 74 68 65 20 6d 6f 64 75 |. When |the modu|
|00001240| 6c 65 20 69 73 20 65 78 | 65 63 75 74 65 64 2c 20 |le is ex|ecuted, |
|00001250| 69 74 20 63 72 65 61 74 | 65 73 20 61 6e 20 41 35 |it creat|es an A5|
|00001260| 20 77 6f 72 6c 64 2c 20 | 64 6f 65 73 20 69 74 73 | world, |does its|
|00001270| 20 74 68 69 6e 67 2c 20 | 61 6e 64 20 74 68 65 6e | thing, |and then|
|00001280| 20 74 65 61 72 73 20 64 | 6f 77 6e 20 74 68 65 20 | tears d|own the |
|00001290| 41 35 20 77 6f 72 6c 64 | 2c 20 6d 61 6b 69 6e 67 |A5 world|, making|
|000012a0| 20 73 75 72 65 20 74 6f | 20 72 65 73 74 6f 72 65 | sure to| restore|
|000012b0| 20 74 68 65 20 68 6f 73 | 74 20 61 70 70 6c 69 63 | the hos|t applic|
|000012c0| 61 74 69 6f 6e d5 73 20 | 77 6f 72 6c 64 2e 20 20 |ation.s |world. |
|000012d0| 53 75 63 68 20 61 20 72 | 6f 75 74 69 6e 65 20 77 |Such a r|outine w|
|000012e0| 6f 75 6c 64 20 6c 6f 6f | 6b 20 73 6f 6d 65 74 68 |ould loo|k someth|
|000012f0| 69 6e 67 20 6c 69 6b 65 | 20 74 68 65 20 66 6f 6c |ing like| the fol|
|00001300| 6c 6f 77 69 6e 67 3a 0d | 00 1e 00 00 0c 00 00 14 |lowing:.|........|
|00001310| 00 44 0c 00 00 16 00 46 | 0c 00 00 14 00 76 0c 00 |.D.....F|.....v..|
|00001320| 00 16 00 78 0c 00 00 14 | 00 09 01 dd 03 0a 00 00 |...x....|........|
|00001330| 00 09 00 24 00 48 00 6c | 00 90 00 b4 00 d8 00 fc |...$.H.l|........|
|00001340| 01 20 01 44 01 68 02 07 | 02 07 00 01 0d 00 00 06 |. .D.h..|........|
|00001350| 00 00 0c 00 00 14 00 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00001360| 00 06 00 00 09 00 00 16 | 00 17 09 09 09 41 35 52 |........|.....A5R|
|00001370| 65 66 54 79 70 65 20 3d | 20 48 61 6e 64 6c 65 3b |efType =| Handle;|
|00001380| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00001390| 00 00 09 00 00 16 00 06 | 09 09 56 41 52 0d 00 06 |........|..VAR...|
|000013a0| 00 00 09 00 00 16 00 14 | 09 09 09 67 6c 6f 62 61 |........|...globa|
|000013b0| 6c 3a 20 69 6e 74 65 67 | 65 72 3b 0d 00 06 00 00 |l: integ|er;.....|
|000013c0| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|000013d0| 00 12 09 09 50 52 4f 43 | 45 44 55 52 45 20 4d 61 |....PROC|EDURE Ma|
|000013e0| 69 6e 3b 0d 00 06 00 00 | 09 00 00 16 00 01 0d 00 |in;.....|........|
|000013f0| 00 06 00 00 09 00 00 16 | 00 07 09 09 09 56 41 52 |........|.....VAR|
|00001400| 0d 00 00 06 00 00 09 00 | 00 16 00 16 09 09 09 09 |........|........|
|00001410| 41 35 52 65 66 3a 20 41 | 35 52 65 66 54 79 70 65 |A5Ref: A|5RefType|
|00001420| 3b 0d 00 06 00 00 09 00 | 00 16 00 10 09 09 09 09 |;.......|........|
|00001430| 6f 6c 64 41 35 3a 20 50 | 74 72 3b 0d 00 06 00 00 |oldA5: P|tr;.....|
|00001440| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00001450| 00 09 09 09 09 42 45 47 | 49 4e 0d 00 00 06 00 00 |.....BEG|IN......|
|00001460| 09 00 00 16 00 18 09 09 | 09 09 4d 61 6b 65 41 35 |........|..MakeA5|
|00001470| 57 6f 72 6c 64 28 41 35 | 52 65 66 29 3b 0d 00 06 |World(A5|Ref);...|
|00001480| 00 00 09 00 00 16 00 20 | 09 09 09 09 6f 6c 64 41 |....... |....oldA|
|00001490| 35 20 3a 3d 20 53 65 74 | 41 35 57 6f 72 6c 64 28 |5 := Set|A5World(|
|000014a0| 41 35 52 65 66 29 3b 0d | 00 06 00 00 09 00 00 16 |A5Ref);.|........|
|000014b0| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 11 09 09 |........|........|
|000014c0| 09 09 44 6f 53 6f 6d 65 | 53 74 75 66 66 3b 0d 00 |..DoSome|Stuff;..|
|000014d0| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|000014e0| 09 00 00 16 00 22 09 09 | 09 09 52 65 73 74 6f 72 |....."..|..Restor|
|000014f0| 65 41 35 57 6f 72 6c 64 | 28 6f 6c 64 41 35 2c 20 |eA5World|(oldA5, |
|00001500| 41 35 52 65 66 29 3b 0d | 00 06 00 00 09 00 00 16 |A5Ref);.|........|
|00001510| 00 1a 09 09 09 09 44 69 | 73 70 6f 73 65 41 35 57 |......Di|sposeA5W|
|00001520| 6f 72 6c 64 28 41 35 52 | 65 66 29 0d 00 06 00 00 |orld(A5R|ef).....|
|00001530| 09 00 00 16 00 23 f2 3f | 32 f3 5f 36 f3 af 09 f4 |.....#.?|2._6....|
|00001540| 7a 5f 62 6a 80 73 0f 53 | 26 39 f2 df 41 a5 31 0f |z_bj.s.S|&9..A.1.|
|00001550| 43 59 1f 3f f0 d0 00 06 | 00 00 12 01 00 14 00 01 |CY.?....|........|
|00001560| 0d 05 00 06 00 00 0c 00 | 00 14 00 00 09 00 00 16 |........|........|
|00001570| 0c 00 00 14 01 a1 54 68 | 65 20 73 65 63 6f 6e 64 |......Th|e second|
|00001580| 20 6b 69 6e 64 20 69 73 | 20 61 20 6c 69 74 74 6c | kind is| a littl|
|00001590| 65 20 74 72 69 63 6b 69 | 65 72 20 61 6e 64 20 72 |e tricki|er and r|
|000015a0| 65 71 75 69 72 65 73 20 | 74 68 65 20 63 6f 6f 70 |equires |the coop|
|000015b0| 65 72 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 68 |eration |of the h|
|000015c0| 6f 73 74 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |ost appl|ication.|
|000015d0| 20 20 49 6e 20 74 68 69 | 73 20 63 61 73 65 2c 20 | In thi|s case, |
|000015e0| 77 68 61 74 20 77 65 20 | 6e 65 65 64 20 69 73 20 |what we |need is |
|000015f0| 74 68 65 20 61 62 69 6c | 69 74 79 20 74 6f 20 70 |the abil|ity to p|
|00001600| 61 73 73 20 62 61 63 6b | 20 61 20 72 65 66 65 72 |ass back| a refer|
|00001610| 65 6e 63 65 20 74 6f 20 | 6f 75 72 20 67 6c 6f 62 |ence to |our glob|
|00001620| 61 6c 20 76 61 72 69 61 | 62 6c 65 20 73 65 63 74 |al varia|ble sect|
|00001630| 69 6f 6e 20 73 6f 20 77 | 65 20 63 61 6e 20 65 61 |ion so w|e can ea|
|00001640| 73 69 6c 79 20 72 65 73 | 74 6f 72 65 20 69 74 20 |sily res|tore it |
|00001650| 74 68 65 20 6e 65 78 74 | 20 74 69 6d 65 20 77 65 |the next| time we|
|00001660| 20 61 72 65 20 69 6e 76 | 6f 6b 65 64 2e 20 20 49 | are inv|oked. I|
|00001670| 6e 20 61 64 64 69 74 69 | 6f 6e 2c 20 77 65 20 6e |n additi|on, we n|
|00001680| 65 65 64 20 73 6f 6d 65 | 20 73 6f 72 74 20 6f 66 |eed some| sort of|
|00001690| 20 69 6e 64 69 63 61 74 | 69 6f 6e 20 6f 66 20 77 | indicat|ion of w|
|000016a0| 68 65 74 68 65 72 20 6f | 72 20 6e 6f 74 20 74 68 |hether o|r not th|
|000016b0| 69 73 20 69 73 20 74 68 | 65 20 66 69 72 73 74 20 |is is th|e first |
|000016c0| 6f 72 20 6c 61 73 74 20 | 74 69 6d 65 20 77 65 20 |or last |time we |
|000016d0| 61 72 65 20 62 65 69 6e | 67 20 63 61 6c 6c 65 64 |are bein|g called|
|000016e0| 2e 20 20 54 68 69 73 20 | 6b 69 6e 64 20 6f 66 20 |. This |kind of |
|000016f0| 72 6f 75 74 69 6e 65 20 | 63 6f 75 6c 64 20 6c 6f |routine |could lo|
|00001700| 6f 6b 20 6c 69 6b 65 20 | 74 68 65 20 66 6f 6c 6c |ok like |the foll|
|00001710| 6f 77 69 6e 67 3a 0d 00 | 00 06 00 00 0c 00 00 14 |owing:..|........|
|00001720| 00 09 01 dd 03 00 00 00 | 00 09 02 02 02 02 02 26 |........|.......&|
|00001730| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001740| 02 26 00 09 01 d4 01 00 | 00 00 00 09 02 02 02 02 |.&......|........|
|00001750| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001760| 02 26 02 26 00 01 0d 01 | 00 06 00 00 0c 00 00 14 |.&.&....|........|
|00001770| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 01 0d 01 |........|........|
|00001780| 00 06 00 00 0c 00 00 14 | 00 06 00 00 09 00 00 16 |........|........|
|00001790| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 07 09 09 |........|........|
|000017a0| 09 56 41 52 0d 00 00 06 | 00 00 09 00 00 16 00 10 |.VAR....|........|
|000017b0| 09 09 09 09 6f 6c 64 41 | 35 3a 20 50 74 72 3b 0d |....oldA|5: Ptr;.|
|000017c0| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|000017d0| 09 00 00 16 00 09 09 09 | 09 42 45 47 49 4e 0d 00 |........|.BEGIN..|
|000017e0| 00 06 00 00 09 00 00 16 | 00 1e 09 09 09 09 49 46 |........|......IF|
|000017f0| 20 63 6f 64 65 20 3d 20 | 6b 46 69 72 73 74 54 69 | code = |kFirstTi|
|00001800| 6d 65 20 54 48 45 4e 0d | 00 06 00 00 09 00 00 16 |me THEN.|........|
|00001810| 00 19 09 09 09 09 09 4d | 61 6b 65 41 35 57 6f 72 |.......M|akeA5Wor|
|00001820| 6c 64 28 41 35 52 65 66 | 29 3b 0d 00 00 06 00 00 |ld(A5Ref|);......|
|00001830| 09 00 00 16 00 20 09 09 | 09 09 6f 6c 64 41 35 20 |..... ..|..oldA5 |
|00001840| 3a 3d 20 53 65 74 41 35 | 57 6f 72 6c 64 28 41 35 |:= SetA5|World(A5|
|00001850| 52 65 66 29 3b 0d 00 06 | 00 00 09 00 00 16 00 01 |Ref);...|........|
|00001860| 0d 00 00 06 00 00 09 00 | 00 16 00 11 09 09 09 09 |........|........|
|00001870| 44 6f 53 6f 6d 65 53 74 | 75 66 66 3b 0d 00 00 06 |DoSomeSt|uff;....|
|00001880| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|00001890| 00 16 00 22 09 09 09 09 | 52 65 73 74 6f 72 65 41 |..."....|RestoreA|
|000018a0| 35 57 6f 72 6c 64 28 6f | 6c 64 41 35 2c 20 41 35 |5World(o|ldA5, A5|
|000018b0| 52 65 66 29 3b 0d 00 06 | 00 00 09 00 00 16 00 1d |Ref);...|........|
|000018c0| 09 09 09 09 49 46 20 63 | 6f 64 65 20 3d 20 6b 4c |....IF c|ode = kL|
|000018d0| 61 73 74 54 69 6d 65 20 | 54 48 45 4e 0d 00 00 06 |astTime |THEN....|
|000018e0| 00 00 09 00 00 16 00 1b | 09 09 09 09 09 44 69 73 |........|.....Dis|
|000018f0| 70 6f 73 65 41 35 57 6f | 72 6c 64 28 41 35 52 65 |poseA5Wo|rld(A5Re|
|00001900| 66 29 0d 00 00 06 00 00 | 09 00 00 16 00 51 01 dd |f)......|.....Q..|
|00001910| 03 01 00 00 00 09 01 8c | 02 07 02 07 02 07 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 0d |........|........|
|00001930| 20 20 20 20 54 48 45 20 | 45 4e 44 2e 0d 05 00 06 | THE |END.....|
|00001940| 00 00 09 00 00 16 00 00 | 0c 00 00 14 00 ba 28 43 |........|......(C|
|00001950| 6c 61 72 75 73 d5 20 50 | 55 47 2d 66 61 63 65 64 |larus. P|UG-faced|
|00001960| 20 6e 65 69 67 68 62 6f | 72 20 77 6f 75 6c 64 20 | neighbo|r would |
|00001970| 6c 69 6b 65 20 74 6f 20 | 70 6f 69 6e 74 20 6f 75 |like to |point ou|
|00001980| 74 20 74 68 61 74 20 79 | 6f 75 20 63 6f 75 6c 64 |t that y|ou could|
|00001990| 20 61 6c 73 6f 20 6a 75 | 73 74 20 63 68 65 63 6b | also ju|st check|
|000019a0| 20 74 6f 20 73 65 65 20 | 69 66 20 74 68 65 20 41 | to see |if the A|
|000019b0| 35 52 65 66 20 62 65 69 | 6e 67 20 70 61 73 73 65 |5Ref bei|ng passe|
|000019c0| 64 20 74 6f 20 79 6f 75 | 20 69 73 20 4e 49 4c 20 |d to you| is NIL |
|000019d0| 6f 72 20 6e 6f 74 20 74 | 6f 20 64 65 74 65 72 6d |or not t|o determ|
|000019e0| 69 6e 65 20 69 66 20 79 | 6f 75 20 6e 65 65 64 20 |ine if y|ou need |
|000019f0| 74 6f 20 63 72 65 61 74 | 65 20 61 6e 20 41 35 20 |to creat|e an A5 |
|00001a00| 77 6f 72 6c 64 2e 29 0d | 00 2a 00 00 0c 00 00 14 |world.).|.*......|
|00001a10| 00 61 0c 00 00 16 00 66 | 0c 00 00 14 00 7e 0c 00 |.a.....f|.....~..|
|00001a20| 00 16 00 81 0c 00 00 14 | 00 af 0c 00 00 16 00 b1 |........|........|
|00001a30| 0c 00 00 14 00 01 0d 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00001a40| 00 d3 f4 c7 f6 b1 0f 49 | 08 67 9f 2c 0f 76 14 f7 |.......I|.g.,.v..|
|00001a50| 90 87 f6 de a1 f2 e0 0f | 45 f7 61 30 f4 3a 64 f7 |........|E.a0.:d.|
|00001a60| 58 fd 50 1f 76 7a 02 f7 | 77 30 f6 24 52 b1 4f 2c |X.P.vz..|w0.$R.O,|
|00001a70| 0f 4f 8c 64 f2 c0 c5 f7 | 5a 90 f7 74 72 10 2b 1f |.O.d....|Z..tr.+.|
|00001a80| 6d f2 e0 0f 54 b1 f7 90 | 64 10 41 6a af 79 05 3a |m...T...|d.Aj.y.:|
|00001a90| f7 90 73 21 4d 6c 18 02 | 50 2b 10 4f 75 3f 2d 27 |..s!Ml..|P+.Ou?-'|
|00001aa0| f6 d1 0e 45 c1 9f 75 41 | 80 f4 1f 35 f5 37 f7 a1 |...E..uA|...5.7..|
|00001ab0| 06 39 0f 41 f3 5f 49 37 | 2f 2e 00 f5 4b 10 73 21 |.9.A._I7|/...K.s!|
|00001ac0| 4d 6c 10 25 02 b1 81 04 | 5f 75 27 31 80 78 06 80 |Ml.%....|_u'1.x..|
|00001ad0| d5 aa 5f 77 8f 3a f0 d0 | 00 1e 00 00 0c 00 00 14 |.._w.:..|........|
|00001ae0| 00 90 0c 00 00 16 00 96 | 0c 00 00 14 00 9b 0c 00 |........|........|
|00001af0| 00 16 00 a1 0c 00 00 14 | 00 09 01 dd 03 00 00 00 |........|........|
|00001b00| 00 09 02 02 02 02 02 26 | 02 26 02 26 02 26 02 26 |.......&|.&.&.&.&|
|00001b10| 02 26 02 26 02 26 02 26 | 02 26 00 09 01 dd 03 0a |.&.&.&.&|.&......|
|00001b20| 00 00 00 09 00 24 00 48 | 00 6c 00 90 00 b4 00 d8 |.....$.H|.l......|
|00001b30| 00 fc 01 20 01 44 01 68 | 02 07 02 07 00 09 01 dd |... .D.h|........|
|00001b40| 03 00 00 00 00 09 02 02 | 02 02 02 26 02 26 02 26 |........|...&.&.&|
|00001b50| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 00 09 |.&.&.&.&|.&.&.&..|
|00001b60| 01 dd 03 0a 00 00 00 09 | 00 24 00 48 00 6c 00 90 |........|.$.H.l..|
|00001b70| 00 b4 00 d8 00 fc 01 20 | 01 44 01 68 02 07 02 07 |....... |.D.h....|
|00001b80| 00 09 01 dd 03 00 00 00 | 00 09 02 02 02 02 02 26 |........|.......&|
|00001b90| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001ba0| 02 26 00 09 01 dd 03 0a | 00 00 00 09 00 24 00 48 |.&......|.....$.H|
|00001bb0| 00 6c 00 90 00 b4 00 d8 | 00 fc 01 20 01 44 01 68 |.l......|... .D.h|
|00001bc0| 02 07 02 07 00 2f 09 09 | 50 52 4f 43 45 44 55 52 |...../..|PROCEDUR|
|00001bd0| 45 20 4d 61 6b 65 41 35 | 57 6f 72 6c 64 28 56 41 |E MakeA5|World(VA|
|00001be0| 52 20 41 35 52 65 66 3a | 20 41 35 52 65 66 54 79 |R A5Ref:| A5RefTy|
|00001bf0| 70 65 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 01 |pe);....|........|
|00001c00| 0d 00 00 06 00 00 09 00 | 00 16 00 09 09 09 09 42 |........|.......B|
|00001c10| 45 47 49 4e 0d 00 00 06 | 00 00 09 00 00 16 00 20 |EGIN....|....... |
|00001c20| 09 09 09 09 41 35 52 65 | 66 20 3a 3d 20 4e 65 77 |....A5Re|f := New|
|00001c30| 48 61 6e 64 6c 65 28 41 | 35 53 69 7a 65 29 3b 0d |Handle(A|5Size);.|
|00001c40| 00 06 00 00 09 00 00 16 | 00 12 09 09 09 09 48 4c |........|......HL|
|00001c50| 6f 63 6b 28 41 35 52 65 | 66 29 3b 0d 00 06 00 00 |ock(A5Re|f);.....|
|00001c60| 09 00 00 16 00 2d 09 09 | 09 09 41 35 49 6e 69 74 |.....-..|..A5Init|
|00001c70| 28 50 74 72 28 4f 52 44 | 34 28 41 35 52 65 66 5e |(Ptr(ORD|4(A5Ref^|
|00001c80| 29 20 2b 20 41 35 53 69 | 7a 65 20 2d 20 33 32 29 |) + A5Si|ze - 32)|
|00001c90| 29 3b 0d 00 00 06 00 00 | 09 00 00 16 00 14 09 09 |);......|........|
|00001ca0| 09 09 48 55 6e 6c 6f 63 | 6b 28 41 35 52 65 66 29 |..HUnloc|k(A5Ref)|
|00001cb0| 3b 0d 00 06 00 00 09 00 | 00 16 00 08 09 09 09 45 |;.......|.......E|
|00001cc0| 4e 44 3b 0d 00 06 00 00 | 09 00 00 16 00 01 0d 00 |ND;.....|........|
|00001cd0| 00 06 00 00 09 00 00 16 | 00 32 09 09 46 55 4e 43 |........|.2..FUNC|
|00001ce0| 54 49 4f 4e 20 53 65 74 | 41 35 57 6f 72 6c 64 28 |TION Set|A5World(|
|00001cf0| 41 35 52 65 66 3a 20 41 | 35 52 65 66 54 79 70 65 |A5Ref: A|5RefType|
|00001d00| 29 3a 20 4c 6f 6e 67 69 | 6e 74 3b 0d 00 06 00 00 |): Longi|nt;.....|
|00001d10| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00001d20| 00 09 09 09 09 42 45 47 | 49 4e 0d 00 00 06 00 00 |.....BEG|IN......|
|00001d30| 09 00 00 16 00 12 09 09 | 09 09 48 4c 6f 63 6b 28 |........|..HLock(|
|00001d40| 41 35 52 65 66 29 3b 0d | 00 06 00 00 09 00 00 16 |A5Ref);.|........|
|00001d50| 00 38 09 09 09 09 53 65 | 74 41 35 57 6f 72 6c 64 |.8....Se|tA5World|
|00001d60| 20 3a 3d 20 53 65 74 41 | 35 28 4c 6f 6e 67 69 6e | := SetA|5(Longin|
|00001d70| 74 28 41 35 52 65 66 5e | 29 20 2b 20 41 35 53 69 |t(A5Ref^|) + A5Si|
|00001d80| 7a 65 20 2d 20 33 32 29 | 3b 0d 00 06 00 00 09 00 |ze - 32)|;.......|
|00001d90| 00 16 00 08 09 09 09 45 | 4e 44 3b 0d 00 06 00 00 |.......E|ND;.....|
|00001da0| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00001db0| 00 3e 09 09 50 52 4f 43 | 45 44 55 52 45 20 52 65 |.>..PROC|EDURE Re|
|00001dc0| 73 74 6f 72 65 41 35 57 | 6f 72 6c 64 28 6f 6c 64 |storeA5W|orld(old|
|00001dd0| 41 35 3a 20 4c 6f 6e 67 | 69 6e 74 3b 20 41 35 52 |A5: Long|int; A5R|
|00001de0| 65 66 3a 20 41 35 52 65 | 66 54 79 70 65 29 3b 0d |ef: A5Re|fType);.|
|00001df0| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00001e00| 09 00 00 16 00 09 09 09 | 09 42 45 47 49 4e 0d 00 |........|.BEGIN..|
|00001e10| 00 06 00 00 09 00 00 16 | 00 23 09 09 09 09 49 46 |........|.#....IF|
|00001e20| 20 42 6f 6f 6c 65 61 6e | 28 53 65 74 41 35 28 6f | Boolean|(SetA5(o|
|00001e30| 6c 64 41 35 29 29 20 54 | 48 45 4e 3b 0d 00 00 06 |ldA5)) T|HEN;....|
|00001e40| 00 00 09 00 00 16 00 14 | 09 09 09 09 48 55 6e 6c |........|....HUnl|
|00001e50| 6f 63 6b 28 41 35 52 65 | 66 29 3b 0d 00 06 00 00 |ock(A5Re|f);.....|
|00001e60| 09 00 00 16 00 08 09 09 | 09 45 4e 44 3b 0d 00 06 |........|.END;...|
|00001e70| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|00001e80| 00 16 00 2e 09 09 50 52 | 4f 43 45 44 55 52 45 20 |......PR|OCEDURE |
|00001e90| 44 69 73 70 6f 73 65 41 | 35 57 6f 72 6c 64 28 41 |DisposeA|5World(A|
|00001ea0| 35 52 65 66 3a 20 41 35 | 52 65 66 54 79 70 65 29 |5Ref: A5|RefType)|
|00001eb0| 3b 0d 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |;.......|........|
|00001ec0| 00 00 09 00 00 16 00 09 | 09 09 09 42 45 47 49 4e |........|...BEGIN|
|00001ed0| 0d 00 00 06 00 00 09 00 | 00 16 00 19 09 09 09 09 |........|........|
|00001ee0| 44 69 73 70 6f 73 48 61 | 6e 64 6c 65 28 41 35 52 |DisposHa|ndle(A5R|
|00001ef0| 65 66 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 08 |ef);....|........|
|00001f00| 09 09 09 45 4e 44 3b 0d | 00 06 00 00 09 00 00 16 |...END;.|........|
|00001f10| 00 09 01 dd 03 00 00 00 | 00 09 02 02 02 02 02 26 |........|.......&|
|00001f20| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001f30| 02 26 00 09 01 dd 03 0a | 00 00 00 09 00 24 00 48 |.&......|.....$.H|
|00001f40| 00 6c 00 90 00 b4 00 d8 | 00 fc 01 20 01 44 01 68 |.l......|... .D.h|
|00001f50| 02 07 02 07 00 37 f0 9f | 09 f0 9f 09 f0 9f 09 fd |.....7..|........|
|00001f60| 0f 50 f4 30 f5 71 13 71 | 0f 77 b5 fd 58 08 11 30 |.P.0.q.q|.w..X..0|
|00001f70| 2b 10 f4 c7 f6 7b 20 5d | 02 b1 0f 4d 6c 73 25 8b |+....{ ]|...Mls%.|
|00001f80| f0 d0 00 06 00 00 0c 00 | 00 14 00 2f f0 9f 53 e1 |........|.../..S.|
|00001f90| c7 6a 0f 47 f7 51 82 06 | ee 16 46 3c 10 f6 2f 79 |.j.G.Q..|..F<../y|
|00001fa0| 0f 43 a6 4f 75 80 2b 10 | 95 f6 7c 5f 77 f0 d0 00 |.C.Ou.+.|..|_w...|
|00001fb0| 00 06 00 00 0c 00 00 14 | 00 13 f4 6f 75 42 b1 40 |........|...ouB.@|
|00001fc0| f5 21 d1 41 3c 1f 3a f0 | d0 00 00 06 00 00 0c 01 |.!.A<.:.|........|
|00001fd0| 00 14 00 2d 01 b9 03 00 | 00 00 00 1b 01 de 01 de |...-....|........|
|00001fe0| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 02 26 |.&.&.&.&|.&.&.&.&|
|00001ff0| 02 26 02 26 00 01 0d 01 | 00 06 00 00 0c 00 00 14 |.&.&....|........|
|00002000| 00 01 0d 01 00 06 00 00 | 0a 00 00 14 00 a1 0c 00 |........|........|
|00002010| 00 14 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 1c |........|........|
|00002020| 09 09 46 55 4e 43 54 49 | 4f 4e 20 41 35 53 69 7a |..FUNCTI|ON A5Siz|
|00002030| 65 3a 20 4c 6f 6e 67 69 | 6e 74 3b 0d 00 06 00 00 |e: Longi|nt;.....|
|00002040| 09 00 00 16 00 10 09 09 | 09 43 3b 20 45 58 54 45 |........|.C; EXTE|
|00002050| 52 4e 41 4c 3b 0d 00 06 | 00 00 09 00 00 16 00 01 |RNAL;...|........|
|00002060| 0d 00 00 06 00 00 09 00 | 00 16 00 1f 09 09 50 52 |........|......PR|
|00002070| 4f 43 45 44 55 52 45 20 | 41 35 49 6e 69 74 28 6d |OCEDURE |A5Init(m|
|00002080| 79 41 35 3a 20 50 74 72 | 29 3b 0d 00 00 06 00 00 |yA5: Ptr|);......|
|00002090| 09 00 00 16 00 10 09 09 | 09 43 3b 20 45 58 54 45 |........|.C; EXTE|
|000020a0| 52 4e 41 4c 3b 0d 00 06 | 00 00 09 00 00 16 00 01 |RNAL;...|........|
|000020b0| 0d 18 00 06 00 00 0c 20 | 00 14 01 44 41 68 2c 20 |....... |...DAh, |
|000020c0| 43 6c 61 72 75 73 20 73 | 65 65 73 20 75 6e 64 65 |Clarus s|ees unde|
|000020d0| 72 73 74 61 6e 64 69 6e | 67 20 69 6e 20 79 6f 75 |rstandin|g in you|
|000020e0| 72 20 65 79 65 73 2e 20 | 20 d2 53 6f 20 74 68 65 |r eyes. | .So the|
|000020f0| 73 65 20 61 72 65 20 74 | 68 65 20 6d 61 67 69 63 |se are t|he magic|
|00002100| 20 72 6f 75 74 69 6e 65 | 73 2c d3 20 79 6f 75 20 | routine|s,. you |
|00002110| 61 72 65 20 74 68 69 6e | 6b 69 6e 67 2e 20 20 d2 |are thin|king. .|
|00002120| 54 68 65 79 20 61 72 65 | 20 74 68 65 20 6d 61 67 |They are| the mag|
|00002130| 69 63 20 69 6e 63 61 6e | 74 61 74 69 6f 6e 73 20 |ic incan|tations |
|00002140| 74 68 61 74 20 61 6c 6c | 6f 77 20 6d 65 20 74 6f |that all|ow me to|
|00002150| 20 73 74 6f 70 20 62 65 | 61 74 69 6e 67 20 6d 79 | stop be|ating my|
|00002160| 20 68 65 61 64 20 75 70 | 20 61 67 61 69 6e 73 74 | head up| against|
|00002170| 20 49 6e 73 69 64 65 20 | 4d 61 63 69 6e 74 6f 73 | Inside |Macintos|
|00002180| 68 20 61 6e 64 20 6c 65 | 74 20 6d 65 20 67 65 74 |h and le|t me get|
|00002190| 20 6f 6e 20 77 69 74 68 | 20 6d 79 20 77 6f 72 6b | on with| my work|
|000021a0| 2e 20 20 57 68 79 20 64 | 69 64 6e d5 74 20 41 70 |. Why d|idn.t Ap|
|000021b0| 70 6c 65 20 65 76 65 72 | 20 74 65 6c 6c 20 6d 65 |ple ever| tell me|
|000021c0| 20 61 62 6f 75 74 20 74 | 68 65 73 65 20 62 65 66 | about t|hese bef|
|000021d0| 6f 72 65 3f d3 20 54 6f | 20 74 65 6c 6c 20 74 68 |ore?. To| tell th|
|000021e0| 65 20 74 72 75 74 68 2c | 20 43 6c 61 72 75 73 20 |e truth,| Clarus |
|000021f0| 69 73 6e d5 74 20 74 6f | 6f 20 73 75 72 65 2e 0d |isn.t to|o sure..|
|00002200| 00 12 00 00 0c 00 00 14 | 00 b5 0c 02 00 14 00 c5 |........|........|
|00002210| 0c 00 00 14 00 01 0d 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00002220| 01 2a 41 35 53 69 7a 65 | 20 66 69 6e 64 73 20 6f |.*A5Size| finds o|
|00002230| 75 74 20 68 6f 77 20 6d | 75 63 68 20 6d 65 6d 6f |ut how m|uch memo|
|00002240| 72 79 20 77 65 20 6e 65 | 65 64 20 66 6f 72 20 6f |ry we ne|ed for o|
|00002250| 75 72 20 41 35 20 77 6f | 72 6c 64 2e 20 20 54 68 |ur A5 wo|rld. Th|
|00002260| 69 73 20 6d 65 6d 6f 72 | 79 20 63 6f 6e 73 69 73 |is memor|y consis|
|00002270| 74 73 20 6f 66 20 74 77 | 6f 20 70 61 72 74 73 3a |ts of tw|o parts:|
|00002280| 20 20 6d 65 6d 6f 72 79 | 20 66 6f 72 20 6f 75 72 | memory| for our|
|00002290| 20 67 6c 6f 62 61 6c 73 | 2c 20 61 6e 64 20 6d 65 | globals|, and me|
|000022a0| 6d 6f 72 79 20 66 6f 72 | 20 6f 75 72 20 61 70 70 |mory for| our app|
|000022b0| 6c 69 63 61 74 69 6f 6e | 20 70 61 72 61 6d 65 74 |lication| paramet|
|000022c0| 65 72 73 2e 20 20 41 35 | 49 6e 69 74 20 74 61 6b |ers. A5|Init tak|
|000022d0| 65 73 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |es a poi|nter to |
|000022e0| 6f 75 72 20 41 35 20 67 | 6c 6f 62 61 6c 73 20 61 |our A5 g|lobals a|
|000022f0| 6e 64 20 69 6e 69 74 69 | 61 6c 69 7a 65 73 20 74 |nd initi|alizes t|
|00002300| 68 65 6d 20 74 6f 20 74 | 68 65 69 72 20 61 70 70 |hem to t|heir app|
|00002310| 72 6f 70 72 69 61 74 65 | 20 76 61 6c 75 65 73 2e |ropriate| values.|
|00002320| 20 20 48 6f 77 20 74 68 | 65 73 65 20 77 6f 72 6b | How th|ese work|
|00002330| 20 74 61 6b 65 73 20 61 | 20 6c 69 74 74 6c 65 20 | takes a| little |
|00002340| 65 78 70 6c 61 69 6e 69 | 6e 67 2e 0d 00 30 00 00 |explaini|ng...0..|
|00002350| 0c 00 00 16 00 06 0c 00 | 00 14 00 31 0c 00 00 16 |........|...1....|
|00002360| 00 33 0c 00 00 14 00 a4 | 0c 00 00 16 00 aa 0c 00 |.3......|........|
|00002370| 00 14 00 c2 0c 00 00 16 | 00 c4 0c 00 00 14 00 01 |........|........|
|00002380| 0d 00 00 06 00 00 0c 00 | 00 14 01 a2 57 68 65 6e |........|....When|
|00002390| 20 4d 50 57 d5 73 20 6c | 69 6e 6b 65 72 20 6c 69 | MPW.s l|inker li|
|000023a0| 6e 6b 73 20 79 6f 75 72 | 20 70 72 6f 67 72 61 6d |nks your| program|
|000023b0| 20 74 6f 67 65 74 68 65 | 72 2c 20 69 74 20 68 61 | togethe|r, it ha|
|000023c0| 73 20 74 6f 20 73 6f 6d | 65 68 6f 77 20 64 65 73 |s to som|ehow des|
|000023d0| 63 72 69 62 65 20 77 68 | 61 74 20 79 6f 75 72 20 |cribe wh|at your |
|000023e0| 67 6c 6f 62 61 6c 73 20 | 61 72 65 61 20 73 68 6f |globals |area sho|
|000023f0| 75 6c 64 20 6c 6f 6f 6b | 20 6c 69 6b 65 2e 20 20 |uld look| like. |
|00002400| 41 74 20 74 68 65 20 76 | 65 72 79 20 6c 65 61 73 |At the v|ery leas|
|00002410| 74 2c 20 69 74 20 6e 65 | 65 64 73 20 74 6f 20 6b |t, it ne|eds to k|
|00002420| 65 65 70 20 74 72 61 63 | 6b 20 6f 66 20 68 6f 77 |eep trac|k of how|
|00002430| 20 6c 61 72 67 65 20 79 | 6f 75 72 20 67 6c 6f 62 | large y|our glob|
|00002440| 61 6c 73 20 73 65 63 74 | 69 6f 6e 20 73 68 6f 75 |als sect|ion shou|
|00002450| 6c 64 20 62 65 2e 20 20 | 41 74 20 74 68 65 20 76 |ld be. |At the v|
|00002460| 65 72 79 20 6e 6f 74 2d | 6c 65 61 73 74 2c 20 69 |ery not-|least, i|
|00002470| 74 20 6e 65 65 64 73 20 | 74 6f 20 73 70 65 63 69 |t needs |to speci|
|00002480| 66 79 20 77 68 61 74 20 | 76 61 6c 75 65 73 20 74 |fy what |values t|
|00002490| 6f 20 70 75 74 20 69 6e | 74 6f 20 79 6f 75 72 20 |o put in|to your |
|000024a0| 67 6c 6f 62 61 6c 73 20 | 61 72 65 61 2e 20 20 4e |globals |area. N|
|000024b0| 6f 72 6d 61 6c 6c 79 2c | 20 74 68 69 73 20 6d 65 |ormally,| this me|
|000024c0| 61 6e 73 20 73 65 74 74 | 69 6e 67 20 65 76 65 72 |ans sett|ing ever|
|000024d0| 79 74 68 69 6e 67 20 74 | 6f 20 7a 65 72 6f 2c 20 |ything t|o zero, |
|000024e0| 62 75 74 20 73 6f 6d 65 | 20 63 72 75 66 74 79 20 |but some| crufty |
|000024f0| 6c 61 6e 67 75 61 67 65 | 73 20 6c 69 6b 65 20 43 |language|s like C|
|00002500| 20 61 6c 6c 6f 77 20 6f | 6e 65 20 74 6f 20 73 70 | allow o|ne to sp|
|00002510| 65 63 69 66 79 20 70 72 | 65 69 6e 69 74 69 61 6c |ecify pr|einitial|
|00002520| 69 7a 65 64 20 67 6c 6f | 62 61 6c 73 2e 0d 00 06 |ized glo|bals....|
|00002530| 00 00 0c 00 00 14 00 01 | 0d 00 00 06 00 00 0c 00 |........|........|
|00002540| 00 14 01 c7 54 68 65 20 | 6c 69 6e 6b 65 72 20 63 |....The |linker c|
|00002550| 72 65 61 74 65 73 20 61 | 20 70 61 63 6b 65 64 20 |reates a| packed |
|00002560| 64 61 74 61 20 62 6c 6f | 63 6b 20 74 68 61 74 20 |data blo|ck that |
|00002570| 64 65 73 63 72 69 62 65 | 73 20 61 6c 6c 20 6f 66 |describe|s all of|
|00002580| 20 74 68 69 73 20 61 6e | 64 20 73 74 69 63 6b 73 | this an|d sticks|
|00002590| 20 69 74 20 69 6e 74 6f | 20 61 20 73 65 67 6d 65 | it into| a segme|
|000025a0| 6e 74 20 63 61 6c 6c 65 | 64 20 25 41 35 49 6e 69 |nt calle|d %A5Ini|
|000025b0| 74 2e 20 20 41 6c 73 6f | 20 69 6e 63 6c 75 64 65 |t. Also| include|
|000025c0| 64 20 69 6e 20 74 68 69 | 73 20 73 65 67 6d 65 6e |d in thi|s segmen|
|000025d0| 74 20 61 72 65 20 74 68 | 65 20 72 6f 75 74 69 6e |t are th|e routin|
|000025e0| 65 73 20 63 61 6c 6c 65 | 64 20 62 79 20 74 68 65 |es calle|d by the|
|000025f0| 20 4d 50 57 20 72 75 6e | 2d 74 69 6d 65 20 69 6e | MPW run|-time in|
|00002600| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 70 61 63 |itializa|tion pac|
|00002610| 6b 61 67 65 20 74 6f 20 | 61 63 74 20 75 70 6f 6e |kage to |act upon|
|00002620| 20 74 68 69 73 20 64 61 | 74 61 2e 20 20 41 35 53 | this da|ta. A5S|
|00002630| 69 7a 65 20 61 6e 64 20 | 41 35 49 6e 69 74 20 61 |ize and |A5Init a|
|00002640| 72 65 20 74 77 6f 20 73 | 75 63 68 20 72 6f 75 74 |re two s|uch rout|
|00002650| 69 6e 65 73 2e 20 20 41 | 35 53 69 7a 65 20 6c 6f |ines. A|5Size lo|
|00002660| 6f 6b 73 20 61 74 20 74 | 68 65 20 66 69 65 6c 64 |oks at t|he field|
|00002670| 20 74 68 61 74 20 68 6f | 6c 64 73 20 74 68 65 20 | that ho|lds the |
|00002680| 75 6e 70 61 63 6b 65 64 | 20 73 69 7a 65 20 6f 66 |unpacked| size of|
|00002690| 20 74 68 65 20 64 61 74 | 61 20 61 6e 64 20 72 65 | the dat|a and re|
|000026a0| 74 75 72 6e 73 20 69 74 | 20 74 6f 20 74 68 65 20 |turns it| to the |
|000026b0| 63 61 6c 6c 65 72 2e 20 | 20 41 35 49 6e 69 74 20 |caller. | A5Init |
|000026c0| 69 73 20 74 68 65 20 62 | 65 61 73 74 20 72 65 73 |is the b|east res|
|000026d0| 70 6f 6e 73 69 62 6c 65 | 20 66 6f 72 20 75 6e 70 |ponsible| for unp|
|000026e0| 61 63 6b 69 6e 67 20 74 | 68 65 20 64 61 74 61 20 |acking t|he data |
|000026f0| 69 6e 74 6f 20 79 6f 75 | 72 20 67 6c 6f 62 61 6c |into you|r global|
|00002700| 73 20 73 65 63 74 69 6f | 6e 2e 0d 00 00 42 00 00 |s sectio|n....B..|
|00002710| 0c 00 00 14 00 66 0c 00 | 00 16 00 6d 0c 00 00 14 |.....f..|...m....|
|00002720| 00 e9 0c 00 00 16 00 ef | 0c 00 00 14 00 f4 0c 00 |........|........|
|00002730| 00 16 00 fa 0c 00 00 14 | 01 13 0c 00 00 16 01 19 |........|........|
|00002740| 0c 00 00 14 01 75 0c 00 | 00 16 01 7b 0c 00 00 14 |.....u..|...{....|
|00002750| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 02 79 43 6c |........|.....yCl|
|00002760| 61 72 75 73 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 |arus wou|ld like |
|00002770| 74 6f 20 72 65 6d 69 6e | 64 20 74 68 65 20 67 65 |to remin|d the ge|
|00002780| 6e 74 6c 65 20 72 65 61 | 64 65 72 20 74 68 61 74 |ntle rea|der that|
|00002790| 20 69 6e 20 74 68 65 20 | 4d 61 63 69 6e 74 6f 73 | in the |Macintos|
|000027a0| 68 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 65 6e |h applic|ation en|
|000027b0| 76 69 72 6f 6e 6d 65 6e | 74 2c 20 41 35 20 70 6f |vironmen|t, A5 po|
|000027c0| 69 6e 74 73 20 74 6f 20 | 74 68 65 20 74 6f 70 20 |ints to |the top |
|000027d0| 6f 66 20 74 68 65 20 67 | 6c 6f 62 61 6c 73 20 73 |of the g|lobals s|
|000027e0| 65 63 74 69 6f 6e 2e 20 | 20 54 68 69 73 20 73 68 |ection. | This sh|
|000027f0| 6f 75 6c 64 20 65 78 70 | 6c 61 69 6e 20 74 68 65 |ould exp|lain the|
|00002800| 20 6d 61 74 68 20 74 68 | 61 74 20 4d 61 6b 65 41 | math th|at MakeA|
|00002810| 35 57 6f 72 6c 64 20 69 | 73 20 70 65 72 66 6f 72 |5World i|s perfor|
|00002820| 6d 69 6e 67 2e 20 20 49 | 74 20 67 65 74 73 20 61 |ming. I|t gets a|
|00002830| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00002840| 73 74 61 72 74 20 28 69 | 2e 65 2e 2c 20 62 6f 74 |start (i|.e., bot|
|00002850| 74 6f 6d 29 20 6f 66 20 | 6f 75 72 20 67 6c 6f 62 |tom) of |our glob|
|00002860| 61 6c 73 20 61 72 65 61 | 2c 20 61 64 64 73 20 74 |als area|, adds t|
|00002870| 68 65 20 76 61 6c 75 65 | 20 72 65 74 75 72 6e 65 |he value| returne|
|00002880| 64 20 62 79 20 41 35 53 | 69 7a 65 2c 20 61 6e 64 |d by A5S|ize, and|
|00002890| 20 73 75 62 74 72 61 63 | 74 73 20 33 32 20 74 6f | subtrac|ts 32 to|
|000028a0| 20 63 6f 6d 70 65 6e 73 | 61 74 65 20 66 6f 72 20 | compens|ate for |
|000028b0| 74 68 65 20 66 61 63 74 | 20 74 68 61 74 20 41 35 |the fact| that A5|
|000028c0| 53 69 7a 65 20 69 6e 63 | 6c 75 64 65 73 20 72 6f |Size inc|ludes ro|
|000028d0| 6f 6d 20 66 6f 72 20 74 | 68 65 20 61 70 70 6c 69 |om for t|he appli|
|000028e0| 63 61 74 69 6f 6e 20 70 | 61 72 61 6d 65 74 65 72 |cation p|arameter|
|000028f0| 73 2e 20 20 54 68 69 73 | 20 61 63 74 69 6f 6e 20 |s. This| action |
|00002900| 6c 65 61 76 65 73 20 75 | 73 20 77 69 74 68 20 61 |leaves u|s with a|
|00002910| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00002920| 6d 65 6d 6f 72 79 20 6c | 6f 63 61 74 69 6f 6e 20 |memory l|ocation |
|00002930| 74 68 61 74 20 64 69 76 | 69 64 65 73 20 74 68 65 |that div|ides the|
|00002940| 20 67 6c 6f 62 61 6c 20 | 76 61 72 69 61 62 6c 65 | global |variable|
|00002950| 73 20 61 6e 64 20 61 70 | 70 6c 69 63 61 74 69 6f |s and ap|plicatio|
|00002960| 6e 20 70 61 72 61 6d 65 | 74 65 72 73 20 28 69 66 |n parame|ters (if|
|00002970| 20 79 6f 75 72 20 70 68 | 6f 74 6f 67 72 61 70 68 | your ph|otograph|
|00002980| 69 63 20 6d 65 6d 6f 72 | 79 20 69 73 20 6f 75 74 |ic memor|y is out|
|00002990| 20 6f 66 20 66 69 6c 6d | 2c 20 6a 75 73 74 20 6c | of film|, just l|
|000029a0| 6f 6f 6b 20 61 74 20 74 | 68 65 20 70 69 63 74 75 |ook at t|he pictu|
|000029b0| 72 65 20 6f 6e 20 70 61 | 67 65 20 49 49 2d 31 39 |re on pa|ge II-19|
|000029c0| 20 6f 66 20 49 6e 73 69 | 64 65 20 4d 61 63 69 6e | of Insi|de Macin|
|000029d0| 74 6f 73 68 29 2e 0d 00 | 00 4e 00 00 0c 00 00 14 |tosh)...|.N......|
|000029e0| 00 5d 0c 00 00 16 00 5f | 0c 00 00 14 00 6e 0c 01 |.]....._|.....n..|
|000029f0| 00 14 00 71 0c 00 00 14 | 00 ad 0c 00 00 16 00 b8 |...q....|........|
|00002a00| 0c 00 00 14 01 27 0c 00 | 00 16 01 2d 0c 00 00 14 |.....'..|...-....|
|00002a10| 01 60 0c 00 00 16 01 66 | 0c 00 00 14 02 66 0c 02 |.`.....f|.....f..|
|00002a20| 00 14 02 76 0c 00 00 14 | 00 01 0d 00 00 06 00 00 |...v....|........|
|00002a30| 0c 00 00 14 02 4d 54 68 | 65 20 70 72 6f 70 65 6c |.....MTh|e propel|
|00002a40| 6c 65 72 2d 68 65 61 64 | 73 20 6f 76 65 72 20 69 |ler-head|s over i|
|00002a50| 6e 20 74 68 65 20 48 79 | 70 65 72 43 61 72 64 20 |n the Hy|perCard |
|00002a60| 67 72 6f 75 70 20 77 6f | 75 6c 64 20 6c 69 6b 65 |group wo|uld like|
|00002a70| 20 43 6c 61 72 75 73 20 | 74 6f 20 72 65 6d 69 6e | Clarus |to remin|
|00002a80| 64 20 79 6f 75 20 6f 66 | 20 73 6f 6d 65 74 68 69 |d you of| somethi|
|00002a90| 6e 67 20 65 6c 73 65 3a | 20 20 69 66 20 79 6f 75 |ng else:| if you|
|00002aa0| 20 61 72 65 20 70 6c 61 | 6e 6e 69 6e 67 20 6f 6e | are pla|nning on|
|00002ab0| 20 6d 61 6b 69 6e 67 20 | 61 6e 79 20 63 61 6c 6c | making |any call|
|00002ac0| 62 61 63 6b 73 20 74 6f | 20 74 68 65 20 68 6f 73 |backs to| the hos|
|00002ad0| 74 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 28 61 |t applic|ation (a|
|00002ae0| 73 20 48 79 70 65 72 43 | 61 72 64 20 61 6e 64 20 |s HyperC|ard and |
|00002af0| 41 70 70 6c 65 20 46 69 | 6c 65 20 45 78 63 68 61 |Apple Fi|le Excha|
|00002b00| 6e 67 65 20 61 6c 6c 6f | 77 20 79 6f 75 20 74 6f |nge allo|w you to|
|00002b10| 20 64 6f 29 2c 20 79 6f | 75 20 68 61 76 65 20 74 | do), yo|u have t|
|00002b20| 6f 20 74 65 6d 70 6f 72 | 61 72 69 6c 79 20 72 65 |o tempor|arily re|
|00002b30| 73 74 6f 72 65 20 74 68 | 61 74 20 68 6f 73 74 d5 |store th|at host.|
|00002b40| 73 20 41 35 2e 20 20 4f | 74 68 65 72 77 69 73 65 |s A5. O|therwise|
|00002b50| 2c 20 61 73 20 73 61 69 | 64 20 70 72 6f 70 65 6c |, as sai|d propel|
|00002b60| 6c 65 72 2d 68 65 61 64 | 73 20 70 75 74 20 69 74 |ler-head|s put it|
|00002b70| 2c 20 d2 79 6f 75 20 77 | 69 6c 6c 20 62 65 20 73 |, .you w|ill be s|
|00002b80| 69 6e 67 69 6e 67 20 6c | 61 20 62 6f 6d 62 61 d3 |inging l|a bomba.|
|00002b90| 20 77 68 65 6e 20 74 68 | 65 20 68 6f 73 74 20 66 | when th|e host f|
|00002ba0| 69 6e 64 73 20 61 20 64 | 69 66 66 65 72 65 6e 74 |inds a d|ifferent|
|00002bb0| 20 73 65 74 20 6f 66 20 | 76 61 72 69 61 62 6c 65 | set of |variable|
|00002bc0| 73 20 68 61 6e 67 69 6e | 67 20 6f 66 66 20 6f 66 |s hangin|g off of|
|00002bd0| 20 41 35 2e 20 20 4d 61 | 6b 69 6e 67 20 73 75 72 | A5. Ma|king sur|
|00002be0| 65 20 74 68 61 74 20 79 | 6f 75 20 63 61 6c 6c 20 |e that y|ou call |
|00002bf0| 53 65 74 41 35 20 62 65 | 66 6f 72 65 20 61 6e 64 |SetA5 be|fore and|
|00002c00| 20 61 66 74 65 72 20 79 | 6f 75 72 20 63 61 6c 6c | after y|our call|
|00002c10| 62 61 63 6b 73 20 63 75 | 72 65 73 20 74 68 69 73 |backs cu|res this|
|00002c20| 20 70 72 6f 62 6c 65 6d | 2e 20 20 41 20 73 61 6d | problem|. A sam|
|00002c30| 70 6c 65 20 27 58 43 4d | 44 27 20 72 65 73 6f 75 |ple 'XCM|D' resou|
|00002c40| 72 63 65 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f |rce at t|he end o|
|00002c50| 66 20 74 68 69 73 20 54 | 65 63 68 6e 69 63 61 6c |f this T|echnical|
|00002c60| 20 4e 6f 74 65 20 64 65 | 6d 6f 6e 73 74 72 61 74 | Note de|monstrat|
|00002c70| 65 73 20 68 6f 77 20 74 | 6f 20 64 6f 20 74 68 69 |es how t|o do thi|
|00002c80| 73 2e 0d 00 00 36 00 00 | 0c 00 00 14 01 0c 0c 00 |s....6..|........|
|00002c90| 00 16 01 0e 0c 00 00 14 | 01 9b 0c 00 00 16 01 9d |........|........|
|00002ca0| 0c 00 00 14 01 ba 0c 00 | 00 16 01 bf 0c 00 00 14 |........|........|
|00002cb0| 01 fe 0c 00 00 16 02 04 | 0c 00 00 14 00 01 0d 00 |........|........|
|00002cc0| 00 06 00 00 0c 00 00 14 | 02 a3 4f 6e 65 20 6c 61 |........|..One la|
|00002cd0| 73 74 20 74 68 69 6e 67 | 2e 20 20 54 68 65 20 47 |st thing|. The G|
|00002ce0| 72 65 65 6b 73 20 62 65 | 6c 69 65 76 65 64 20 74 |reeks be|lieved t|
|00002cf0| 68 61 74 20 74 68 65 72 | 65 20 77 61 73 20 73 6f |hat ther|e was so|
|00002d00| 6d 65 74 68 69 6e 67 20 | 63 6f 6e 74 72 6f 6c 6c |mething |controll|
|00002d10| 69 6e 67 20 74 68 65 20 | 75 6e 69 76 65 72 73 65 |ing the |universe|
|00002d20| 20 63 61 6c 6c 65 64 20 | d2 54 68 65 20 4e 61 74 | called |.The Nat|
|00002d30| 75 72 61 6c 20 4f 72 64 | 65 72 20 6f 66 20 54 68 |ural Ord|er of Th|
|00002d40| 69 6e 67 73 2e d3 20 20 | 54 68 69 73 20 70 68 69 |ings.. |This phi|
|00002d50| 6c 6f 73 6f 70 68 79 20 | 73 74 61 74 65 64 20 74 |losophy |stated t|
|00002d60| 68 61 74 20 6f 62 6a 65 | 63 74 73 20 73 6f 75 67 |hat obje|cts soug|
|00002d70| 68 74 20 6f 75 74 20 74 | 68 65 69 72 20 6e 61 74 |ht out t|heir nat|
|00002d80| 75 72 61 6c 20 70 6f 73 | 69 74 69 6f 6e 20 69 6e |ural pos|ition in|
|00002d90| 20 74 68 65 20 77 6f 72 | 6c 64 2e 20 20 54 68 69 | the wor|ld. Thi|
|00002da0| 73 20 65 78 70 6c 61 69 | 6e 73 20 77 68 79 20 77 |s explai|ns why w|
|00002db0| 61 74 65 72 20 72 61 69 | 6e 73 20 66 72 6f 6d 20 |ater rai|ns from |
|00002dc0| 74 68 65 20 73 6b 79 20 | 28 74 6f 20 67 65 74 20 |the sky |(to get |
|00002dd0| 62 61 63 6b 20 69 6e 74 | 6f 20 74 68 65 20 6f 63 |back int|o the oc|
|00002de0| 65 61 6e 73 29 20 61 6e | 64 20 77 68 79 20 72 6f |eans) an|d why ro|
|00002df0| 63 6b 73 20 66 61 6c 6c | 20 77 68 65 6e 20 79 6f |cks fall| when yo|
|00002e00| 75 20 64 72 6f 70 20 74 | 68 65 6d 20 28 74 6f 20 |u drop t|hem (to |
|00002e10| 67 65 74 20 62 61 63 6b | 20 74 6f 20 74 68 65 20 |get back| to the |
|00002e20| 67 72 6f 75 6e 64 29 2e | 20 20 54 68 69 73 20 70 |ground).| This p|
|00002e30| 68 69 6c 6f 73 6f 70 68 | 79 20 61 6c 73 6f 20 65 |hilosoph|y also e|
|00002e40| 78 70 6c 61 69 6e 73 20 | 77 68 79 20 74 68 65 20 |xplains |why the |
|00002e50| 6e 65 77 20 41 35 20 68 | 61 6e 64 6c 69 6e 67 20 |new A5 h|andling |
|00002e60| 72 6f 75 74 69 6e 65 73 | 20 28 41 35 49 6e 69 74 |routines| (A5Init|
|00002e70| 2c 20 41 35 53 69 7a 65 | 2c 20 61 6e 64 20 73 6f |, A5Size|, and so|
|00002e80| 6d 65 20 6f 74 68 65 72 | 73 20 74 68 61 74 20 74 |me other|s that t|
|00002e90| 68 65 79 20 72 65 6c 79 | 20 75 70 6f 6e 29 20 6e |hey rely| upon) n|
|00002ea0| 6f 72 6d 61 6c 6c 79 20 | 67 6f 20 69 6e 74 6f 20 |ormally |go into |
|00002eb0| 61 20 27 43 4f 44 45 27 | 20 73 65 67 6d 65 6e 74 |a 'CODE'| segment|
|00002ec0| 20 63 61 6c 6c 65 64 20 | 25 41 35 49 6e 69 74 3b | called |%A5Init;|
|00002ed0| 20 69 74 d5 73 20 62 65 | 63 61 75 73 65 20 74 68 | it.s be|cause th|
|00002ee0| 61 74 d5 73 20 77 68 65 | 72 65 20 74 68 65 79 20 |at.s whe|re they |
|00002ef0| 6e 61 74 75 72 61 6c 6c | 79 20 77 61 6e 74 20 74 |naturall|y want t|
|00002f00| 6f 20 67 6f 2e 20 20 48 | 6f 77 65 76 65 72 2c 20 |o go. H|owever, |
|00002f10| 77 65 20 64 6f 6e d5 74 | 20 77 61 6e 74 20 74 68 |we don.t| want th|
|00002f20| 65 6d 20 74 68 65 72 65 | 3b 20 77 65 20 77 61 6e |em there|; we wan|
|00002f30| 74 20 74 68 65 6d 20 69 | 6e 63 6c 75 64 65 64 20 |t them i|ncluded |
|00002f40| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 73 65 67 6d |in the s|ame segm|
|00002f50| 65 6e 74 20 61 73 20 6f | 75 72 20 73 74 61 6e 64 |ent as o|ur stand|
|00002f60| 2d 61 6c 6f 6e 65 20 63 | 6f 64 65 2e 0d 00 00 42 |-alone c|ode....B|
|00002f70| 00 00 0c 00 00 14 01 8a | 0c 00 00 16 01 8c 0c 00 |........|........|
|00002f80| 00 14 01 a0 0c 00 00 16 | 01 a6 0c 00 00 14 01 a8 |........|........|
|00002f90| 0c 00 00 16 01 ae 0c 00 | 00 14 01 e8 0c 00 00 16 |........|........|
|00002fa0| 01 ee 0c 00 00 14 01 fe | 0c 00 00 16 02 05 0c 00 |........|........|
|00002fb0| 00 14 00 01 0d ff 00 06 | 00 00 0c 00 00 14 01 80 |........|........|
|00002fc0| 46 6f 72 74 75 6e 61 74 | 65 6c 79 2c 20 6d 75 63 |Fortunat|ely, muc|
|00002fd0| 68 20 69 6e 20 74 68 65 | 20 73 61 6d 65 20 77 61 |h in the| same wa|
|00002fe0| 79 20 79 6f 75 20 63 61 | 6e 20 70 69 63 6b 20 75 |y you ca|n pick u|
|00002ff0| 70 20 61 20 72 6f 63 6b | 20 61 6e 64 20 6d 6f 76 |p a rock| and mov|
|00003000| 65 20 69 74 20 73 6f 6d | 65 77 68 65 72 65 20 65 |e it som|ewhere e|
|00003010| 6c 73 65 20 28 70 72 65 | 66 65 72 61 62 6c 79 20 |lse (pre|ferably |
|00003020| 74 6f 20 79 6f 75 72 20 | 6e 65 69 67 68 62 6f 72 |to your |neighbor|
|00003030| d5 73 20 79 61 72 64 29 | 2c 20 79 6f 75 20 63 61 |.s yard)|, you ca|
|00003040| 6e 20 6d 6f 76 65 20 74 | 68 65 73 65 20 72 6f 75 |n move t|hese rou|
|00003050| 74 69 6e 65 73 20 69 6e | 74 6f 20 79 6f 75 72 20 |tines in|to your |
|00003060| 63 6f 64 65 20 73 65 67 | 6d 65 6e 74 2e 20 20 54 |code seg|ment. T|
|00003070| 68 69 73 20 69 73 20 64 | 6f 6e 65 20 62 79 20 75 |his is d|one by u|
|00003080| 73 69 6e 67 20 74 68 65 | 20 2d 73 67 20 6f 70 74 |sing the| -sg opt|
|00003090| 69 6f 6e 20 6f 66 20 74 | 68 65 20 4d 50 57 20 6c |ion of t|he MPW l|
|000030a0| 69 6e 6b 65 72 2e 20 20 | 46 6f 72 20 69 6e 73 74 |inker. |For inst|
|000030b0| 61 6e 63 65 2c 20 69 6e | 20 74 68 65 20 66 6f 6c |ance, in| the fol|
|000030c0| 6c 6f 77 69 6e 67 20 65 | 78 61 6d 70 6c 65 2c 20 |lowing e|xample, |
|000030d0| 43 6c 61 72 75 73 20 73 | 69 6d 70 6c 79 20 6d 6f |Clarus s|imply mo|
|000030e0| 6f 66 65 64 21 20 74 68 | 65 20 73 74 61 74 65 6d |ofed! th|e statem|
|000030f0| 65 6e 74 20 2d 73 67 20 | 53 6f 72 74 65 72 2c 20 |ent -sg |Sorter, |
|00003100| 61 6e 64 20 65 76 65 72 | 79 74 68 69 6e 67 20 77 |and ever|ything w|
|00003110| 61 73 20 73 74 75 66 66 | 65 64 20 69 6e 74 6f 20 |as stuff|ed into |
|00003120| 74 68 65 20 63 6f 64 65 | 20 72 65 73 6f 75 72 63 |the code| resourc|
|00003130| 65 20 6e 61 6d 65 64 20 | 53 6f 72 74 65 72 2e 0d |e named |Sorter..|
|00003140| 00 2a 00 00 0c 00 00 14 | 00 c9 0c 00 00 16 00 cc |.*......|........|
|00003150| 0c 00 00 14 01 34 0c 00 | 00 16 01 3e 0c 00 00 14 |.....4..|...>....|
|00003160| 01 78 0c 00 00 16 01 7e | 0c 00 00 14 00 01 0d 00 |.x.....~|........|
|00003170| 00 06 00 00 0c 00 00 14 | 00 19 43 6c 61 72 75 73 |........|..Clarus|
|00003180| 20 68 6f 70 65 73 20 74 | 68 69 73 20 68 65 6c 70 | hopes t|his help|
|00003190| 73 2e 0d 00 00 06 00 00 | 0c 00 00 14 00 01 0d 00 |s.......|........|
|000031a0| 00 06 00 00 0c 00 00 14 | 00 01 0d 00 00 06 00 00 |........|........|
|000031b0| 0c 00 00 14 00 1b 41 20 | 4e 6f 74 65 20 46 72 6f |......A |Note Fro|
|000031c0| 6d 20 74 68 65 20 4d 61 | 6e 61 67 65 6d 65 6e 74 |m the Ma|nagement|
|000031d0| 0d 00 00 06 00 00 0e 01 | 00 14 00 01 0d 00 00 06 |........|........|
|000031e0| 00 00 0c 00 00 14 02 5e | 54 68 65 20 6d 61 6e 61 |.......^|The mana|
|000031f0| 67 65 6d 65 6e 74 20 6f | 66 20 74 68 69 73 20 70 |gement o|f this p|
|00003200| 75 62 6c 69 63 61 74 69 | 6f 6e 20 77 6f 75 6c 64 |ublicati|on would|
|00003210| 20 6c 69 6b 65 20 74 6f | 20 74 68 61 6e 6b 20 43 | like to| thank C|
|00003220| 6c 61 72 75 73 20 66 6f | 72 20 70 72 6f 76 69 64 |larus fo|r provid|
|00003230| 69 6e 67 20 74 68 65 20 | 70 72 65 63 65 64 69 6e |ing the |precedin|
|00003240| 67 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 20 |g inform|ation. |
|00003250| 48 6f 77 65 76 65 72 2c | 20 77 65 20 66 65 6c 74 |However,| we felt|
|00003260| 20 69 74 20 70 72 75 64 | 65 6e 74 20 74 6f 20 69 | it prud|ent to i|
|00003270| 6e 63 6c 75 64 65 20 74 | 68 65 20 61 64 64 69 74 |nclude t|he addit|
|00003280| 69 6f 6e 61 6c 20 63 61 | 76 65 61 74 2c 20 74 6f |ional ca|veat, to|
|00003290| 20 77 69 74 2c 20 74 68 | 61 74 20 74 68 65 20 70 | wit, th|at the p|
|000032a0| 72 6f 62 6c 65 6d 73 20 | 61 73 73 6f 63 69 61 74 |roblems |associat|
|000032b0| 65 64 20 77 69 74 68 20 | 6d 75 6c 74 69 73 65 67 |ed with |multiseg|
|000032c0| 6d 65 6e 74 65 64 20 63 | 6f 64 65 20 61 72 65 20 |mented c|ode are |
|000032d0| 6e 6f 74 20 64 69 72 65 | 63 74 6c 79 20 61 64 64 |not dire|ctly add|
|000032e0| 72 65 73 73 65 64 20 77 | 69 74 68 20 74 68 65 73 |ressed w|ith thes|
|000032f0| 65 20 74 65 63 68 6e 69 | 71 75 65 73 2e 20 20 54 |e techni|ques. T|
|00003300| 68 65 20 72 6f 75 74 69 | 6e 65 73 20 66 6f 72 20 |he routi|nes for |
|00003310| 64 65 61 6c 69 6e 67 20 | 77 69 74 68 20 6c 6f 61 |dealing |with loa|
|00003320| 64 69 6e 67 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |ding add|itional |
|00003330| 73 65 67 6d 65 6e 74 73 | 2c 20 65 6e 73 75 72 69 |segments|, ensuri|
|00003340| 6e 67 20 74 68 61 74 20 | 74 68 65 20 72 65 73 6f |ng that |the reso|
|00003350| 75 72 63 65 20 6d 61 70 | 20 63 68 61 69 6e d5 73 |urce map| chain.s|
|00003360| 20 69 6e 74 65 67 72 69 | 74 79 20 69 73 20 6d 61 | integri|ty is ma|
|00003370| 69 6e 74 61 69 6e 65 64 | 2c 20 61 6e 64 20 61 6c |intained|, and al|
|00003380| 6c 6f 63 61 74 69 6e 67 | 20 73 70 61 63 65 20 66 |locating| space f|
|00003390| 6f 72 20 61 20 6a 75 6d | 70 20 74 61 62 6c 65 20 |or a jum|p table |
|000033a0| 68 61 76 65 20 6e 6f 74 | 2c 20 61 74 20 74 68 69 |have not|, at thi|
|000033b0| 73 20 74 69 6d 65 2c 20 | 62 65 65 6e 20 66 6f 72 |s time, |been for|
|000033c0| 6d 75 6c 61 74 65 64 2e | 20 20 57 65 2c 20 74 68 |mulated.| We, th|
|000033d0| 65 20 6d 61 6e 61 67 65 | 6d 65 6e 74 2c 20 68 6f |e manage|ment, ho|
|000033e0| 70 65 20 74 6f 20 63 6f | 65 72 63 65 20 43 6c 61 |pe to co|erce Cla|
|000033f0| 72 75 73 20 69 6e 74 6f | 20 61 20 63 61 66 66 65 |rus into| a caffe|
|00003400| 69 6e 65 2d 69 6e 64 75 | 63 65 64 20 68 61 7a 65 |ine-indu|ced haze|
|00003410| 20 73 75 66 66 69 63 69 | 65 6e 74 20 65 6e 6f 75 | suffici|ent enou|
|00003420| 67 68 20 74 6f 20 63 6f | 76 65 72 20 74 68 69 73 |gh to co|ver this|
|00003430| 20 74 6f 70 69 63 20 69 | 6e 20 74 68 65 20 66 75 | topic i|n the fu|
|00003440| 74 75 72 65 2e 0d 00 06 | 00 00 0c 00 00 14 00 01 |ture....|........|
|00003450| 0d 00 00 06 00 00 0c 00 | 00 14 00 01 0d 00 00 06 |........|........|
|00003460| 00 00 09 00 00 16 00 13 | 46 75 6c 6c 20 53 6f 75 |........|Full Sou|
|00003470| 72 63 65 20 53 61 6d 70 | 6c 65 0d 00 00 06 00 00 |rce Samp|le......|
|00003480| 0e 01 00 14 00 01 0d 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00003490| 03 0b 46 6f 6c 6c 6f 77 | 69 6e 67 20 69 73 20 74 |..Follow|ing is t|
|000034a0| 68 65 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 74 |he sourc|e code t|
|000034b0| 6f 20 61 20 48 79 70 65 | 72 43 61 72 64 20 27 58 |o a Hype|rCard 'X|
|000034c0| 43 4d 44 27 20 74 68 61 | 74 20 75 73 65 73 20 67 |CMD' tha|t uses g|
|000034d0| 6c 6f 62 61 6c 73 2e 20 | 20 54 68 69 73 20 27 58 |lobals. | This 'X|
|000034e0| 43 4d 44 27 20 61 63 63 | 65 70 74 73 20 61 20 6c |CMD' acc|epts a l|
|000034f0| 69 73 74 20 6f 66 20 6e | 75 6d 62 65 72 73 2c 20 |ist of n|umbers, |
|00003500| 6f 6e 65 20 61 74 20 61 | 20 74 69 6d 65 2c 20 74 |one at a| time, t|
|00003510| 68 65 6e 20 73 6f 72 74 | 73 20 74 68 65 6d 20 61 |hen sort|s them a|
|00003520| 6e 64 20 70 61 73 73 65 | 73 20 74 68 65 6d 20 62 |nd passe|s them b|
|00003530| 61 63 6b 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |ack to H|yperCard|
|00003540| 2e 20 20 49 74 20 63 61 | 6e 20 72 65 63 65 69 76 |. It ca|n receiv|
|00003550| 65 20 61 6e 79 20 6f 66 | 20 66 6f 75 72 20 63 6f |e any of| four co|
|00003560| 6d 6d 61 6e 64 73 3a 20 | 6b 46 69 72 73 74 54 69 |mmands: |kFirstTi|
|00003570| 6d 65 2c 20 6b 41 64 64 | 45 6e 74 72 79 2c 20 6b |me, kAdd|Entry, k|
|00003580| 53 6f 72 74 45 6e 74 72 | 69 65 73 2c 20 61 6e 64 |SortEntr|ies, and|
|00003590| 20 6b 4c 61 73 74 54 69 | 6d 65 2e 20 20 6b 46 69 | kLastTi|me. kFi|
|000035a0| 72 73 74 54 69 6d 65 20 | 74 65 6c 6c 73 20 74 68 |rstTime |tells th|
|000035b0| 65 20 27 58 43 4d 44 27 | 20 74 6f 20 63 72 65 61 |e 'XCMD'| to crea|
|000035c0| 74 65 20 61 6e 20 41 35 | 20 77 6f 72 6c 64 20 61 |te an A5| world a|
|000035d0| 6e 64 20 69 6e 69 74 69 | 61 6c 69 7a 65 20 69 74 |nd initi|alize it|
|000035e0| 2e 20 20 6b 41 64 64 45 | 6e 74 72 79 20 69 6e 63 |. kAddE|ntry inc|
|000035f0| 6c 75 64 65 73 20 61 20 | 6e 75 6d 62 65 72 20 74 |ludes a |number t|
|00003600| 6f 20 62 65 20 61 64 64 | 65 64 20 74 6f 20 61 20 |o be add|ed to a |
|00003610| 67 6c 6f 62 61 6c 20 61 | 6e 64 20 70 65 72 73 69 |global a|nd persi|
|00003620| 73 74 65 6e 74 20 6c 69 | 73 74 20 6f 66 20 6e 75 |stent li|st of nu|
|00003630| 6d 62 65 72 73 20 74 6f | 20 62 65 20 73 6f 72 74 |mbers to| be sort|
|00003640| 65 64 2e 20 20 6b 53 6f | 72 74 45 6e 74 72 79 20 |ed. kSo|rtEntry |
|00003650| 69 6e 73 74 72 75 63 74 | 73 20 74 68 65 20 27 58 |instruct|s the 'X|
|00003660| 43 4d 44 27 20 74 6f 20 | 73 6f 72 74 20 74 68 65 |CMD' to |sort the|
|00003670| 20 6c 69 73 74 20 6f 66 | 20 6e 75 6d 62 65 72 73 | list of| numbers|
|00003680| 20 61 6e 64 20 70 61 73 | 73 20 74 68 65 6d 20 62 | and pas|s them b|
|00003690| 61 63 6b 20 74 6f 20 48 | 79 70 65 72 43 61 72 64 |ack to H|yperCard|
|000036a0| 2e 20 20 46 69 6e 61 6c | 6c 79 2c 20 6b 4c 61 73 |. Final|ly, kLas|
|000036b0| 74 54 69 6d 65 20 69 73 | 20 70 61 73 73 65 64 20 |tTime is| passed |
|000036c0| 74 6f 20 74 68 65 20 27 | 58 43 4d 44 27 20 74 6f |to the '|XCMD' to|
|000036d0| 20 74 65 6c 6c 20 69 74 | 20 74 6f 20 73 68 75 74 | tell it| to shut|
|000036e0| 20 64 6f 77 6e 20 61 6e | 64 20 64 69 73 70 6f 73 | down an|d dispos|
|000036f0| 65 20 6f 66 20 61 6e 79 | 20 77 6f 72 6b 69 6e 67 |e of any| working|
|00003700| 20 6d 65 6d 6f 72 79 20 | 69 74 20 61 6c 6c 6f 63 | memory |it alloc|
|00003710| 61 74 65 64 2e 20 20 54 | 68 72 6f 75 67 68 6f 75 |ated. T|hroughou|
|00003720| 74 20 61 6c 6c 20 6f 66 | 20 74 68 69 73 2c 20 63 |t all of| this, c|
|00003730| 61 6c 6c 73 20 61 72 65 | 20 6d 61 64 65 20 62 61 |alls are| made ba|
|00003740| 63 6b 20 74 6f 20 48 79 | 70 65 72 43 61 72 64 2c |ck to Hy|perCard,|
|00003750| 20 73 68 6f 77 69 6e 67 | 20 68 6f 77 20 74 6f 20 | showing| how to |
|00003760| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 73 77 61 70 |temporar|ily swap|
|00003770| 20 48 79 70 65 72 43 61 | 72 64 d5 73 20 41 35 20 | HyperCa|rd.s A5 |
|00003780| 62 61 63 6b 20 69 6e 20 | 64 75 72 69 6e 67 20 74 |back in |during t|
|00003790| 68 65 20 63 61 6c 6c 62 | 61 63 6b 2e 0d 00 00 ba |he callb|ack.....|
|000037a0| 00 00 0c 00 00 14 00 2c | 0c 00 00 16 00 32 0c 00 |.......,|.....2..|
|000037b0| 00 14 00 4c 0c 00 00 16 | 00 52 0c 00 00 14 00 d6 |...L....|.R......|
|000037c0| 0c 00 00 16 00 e0 0c 00 | 00 14 00 e2 0c 00 00 16 |........|........|
|000037d0| 00 eb 0c 00 00 14 00 ed | 0c 00 00 16 00 f9 0c 00 |........|........|
|000037e0| 00 14 00 ff 0c 00 00 16 | 01 08 0c 00 00 14 01 0b |........|........|
|000037f0| 0c 00 00 16 01 15 0c 00 | 00 14 01 20 0c 00 00 16 |........|... ....|
|00003800| 01 26 0c 00 00 14 01 34 | 0c 00 00 16 01 36 0c 00 |.&.....4|.....6..|
|00003810| 00 14 01 51 0c 00 00 16 | 01 5a 0c 00 00 14 01 b3 |...Q....|.Z......|
|00003820| 0c 00 00 16 01 bd 0c 00 | 00 14 01 cc 0c 00 00 16 |........|........|
|00003830| 01 d2 0c 00 00 14 02 1a | 0c 00 00 16 02 23 0c 00 |........|.....#..|
|00003840| 00 14 02 35 0c 00 00 16 | 02 3b 0c 00 00 14 02 eb |...5....|.;......|
|00003850| 0c 00 00 16 02 ed 0c 00 | 00 14 00 01 0d 00 00 06 |........|........|
|00003860| 00 00 0c 00 00 14 00 01 | 0d 00 00 06 00 00 0c 00 |........|........|
|00003870| 00 14 00 01 0d ff 00 06 | 00 00 09 00 00 16 00 01 |........|........|
|00003880| 0d ff 00 06 00 00 09 00 | 00 16 0c 01 00 14 00 01 |........|........|
|00003890| 0d 06 00 06 00 00 0c 20 | 00 14 00 0b 6f 6e 20 6d |....... |....on m|
|000038a0| 6f 75 73 65 55 70 0d 00 | 00 06 00 00 09 00 00 16 |ouseUp..|........|
|000038b0| 00 0c 20 20 67 6c 6f 62 | 61 6c 20 41 35 0d 00 06 |.. glob|al A5...|
|000038c0| 00 00 09 00 00 16 00 30 | 20 20 53 6f 72 74 65 72 |.......0| Sorter|
|000038d0| 20 31 2c 20 22 41 35 22 | 20 20 20 20 20 20 20 2d | 1, "A5"| -|
|000038e0| 2d 20 49 6e 69 74 69 61 | 6c 69 7a 65 20 74 68 61 |- Initia|lize tha|
|000038f0| 74 20 70 75 70 70 79 0d | 00 06 00 00 09 00 00 16 |t puppy.|........|
|00003900| 00 1e 20 20 69 66 20 74 | 68 65 20 72 65 73 75 6c |.. if t|he resul|
|00003910| 74 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 0d |t is emp|ty then.|
|00003920| 00 06 00 00 09 00 00 16 | 00 37 20 20 20 20 53 6f |........|.7 So|
|00003930| 72 74 65 72 20 33 2c 20 | 41 35 2c 20 32 20 20 20 |rter 3, |A5, 2 |
|00003940| 20 2d 2d 20 41 64 64 20 | 73 6f 6d 65 20 6e 75 6d | -- Add |some num|
|00003950| 62 65 72 73 20 74 6f 20 | 74 68 65 20 6c 69 73 74 |bers to |the list|
|00003960| 0d 00 00 06 00 00 09 00 | 00 16 00 14 20 20 20 20 |........|.... |
|00003970| 53 6f 72 74 65 72 20 33 | 2c 20 41 35 2c 20 36 0d |Sorter 3|, A5, 6.|
|00003980| 00 06 00 00 09 00 00 16 | 00 14 20 20 20 20 53 6f |........|.. So|
|00003990| 72 74 65 72 20 33 2c 20 | 41 35 2c 20 39 0d 00 06 |rter 3, |A5, 9...|
|000039a0| 00 00 09 00 00 16 00 15 | 20 20 20 20 53 6f 72 74 |........| Sort|
|000039b0| 65 72 20 33 2c 20 41 35 | 2c 20 31 32 0d 00 00 06 |er 3, A5|, 12....|
|000039c0| 00 00 09 00 00 16 00 14 | 20 20 20 20 53 6f 72 74 |........| Sort|
|000039d0| 65 72 20 33 2c 20 41 35 | 2c 20 37 0d 00 06 00 00 |er 3, A5|, 7.....|
|000039e0| 09 00 00 16 00 33 20 20 | 20 20 53 6f 72 74 65 72 |.....3 | Sorter|
|000039f0| 20 34 2c 20 41 35 20 20 | 20 20 20 20 20 2d 2d 20 | 4, A5 | -- |
|00003a00| 73 6f 72 74 20 74 68 65 | 6d 20 61 6e 64 20 70 72 |sort the|m and pr|
|00003a10| 69 6e 74 20 74 68 65 6d | 0d 00 00 06 00 00 09 00 |int them|........|
|00003a20| 00 16 00 2e 20 20 20 20 | 53 6f 72 74 65 72 20 32 |.... |Sorter 2|
|00003a30| 2c 20 41 35 20 20 20 20 | 20 20 20 2d 2d 20 44 69 |, A5 | -- Di|
|00003a40| 73 70 6f 73 65 20 6f 66 | 20 6f 75 72 20 64 61 74 |spose of| our dat|
|00003a50| 61 0d 00 06 00 00 09 00 | 00 16 00 07 20 20 65 6c |a.......|.... el|
|00003a60| 73 65 0d 00 00 06 00 00 | 09 00 00 16 00 13 20 20 |se......|...... |
|00003a70| 20 20 70 75 74 20 74 68 | 65 20 72 65 73 75 6c 74 | put th|e result|
|00003a80| 0d 00 00 06 00 00 09 00 | 00 16 00 09 20 20 65 6e |........|.... en|
|00003a90| 64 20 69 66 0d 00 00 06 | 00 00 09 00 00 16 00 0c |d if....|........|
|00003aa0| 65 6e 64 20 6d 6f 75 73 | 65 55 70 0d 00 06 00 00 |end mous|eUp.....|
|00003ab0| 09 00 00 16 00 01 0d 0d | 00 06 00 00 09 00 00 16 |........|........|
|00003ac0| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 09 01 dd |........|........|
|00003ad0| 03 00 00 00 00 09 02 02 | 02 02 02 26 02 26 02 26 |........|...&.&.&|
|00003ae0| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 00 01 |.&.&.&.&|.&.&.&..|
|00003af0| 0d 00 00 06 00 00 09 00 | 00 16 00 15 4f 42 4a 45 |........|....OBJE|
|00003b00| 43 54 53 20 3d 20 53 6f | 72 74 65 72 2e 70 2e 6f |CTS = So|rter.p.o|
|00003b10| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00003b20| 00 00 09 00 00 16 00 20 | 53 6f 72 74 65 72 20 c4 |....... |Sorter .|
|00003b30| c4 20 53 6f 72 74 65 72 | 2e 6d 61 6b 65 20 7b 4f |. Sorter|.make {O|
|00003b40| 42 4a 45 43 54 53 7d 0d | 00 06 00 00 09 00 00 16 |BJECTS}.|........|
|00003b50| 00 29 09 4c 69 6e 6b 20 | 2d 77 20 2d 74 20 58 43 |.).Link |-w -t XC|
|00003b60| 4d 44 20 2d 63 20 6b 61 | 61 72 20 2d 72 74 20 58 |MD -c ka|ar -rt X|
|00003b70| 43 4d 44 3d 39 39 39 39 | 20 b6 0d 00 00 06 00 00 |CMD=9999| .......|
|00003b80| 09 00 00 16 00 1d 09 09 | 2d 6d 20 45 4e 54 52 59 |........|-m ENTRY|
|00003b90| 50 4f 49 4e 54 20 2d 73 | 67 20 53 6f 72 74 65 72 |POINT -s|g Sorter|
|00003ba0| 20 b6 0d 00 00 06 00 00 | 09 00 00 16 00 0e 09 09 | .......|........|
|00003bb0| 7b 4f 42 4a 45 43 54 53 | 7d 20 b6 0d 00 06 00 00 |{OBJECTS|} ......|
|00003bc0| 09 00 00 16 00 1d 09 09 | 22 7b 4c 69 62 72 61 72 |........|"{Librar|
|00003bd0| 69 65 73 7d 48 79 70 65 | 72 58 4c 69 62 2e 6f 22 |ies}Hype|rXLib.o"|
|00003be0| 20 b6 0d 00 00 06 00 00 | 09 00 00 16 00 1d 09 09 | .......|........|
|00003bf0| 22 7b 4c 69 62 72 61 72 | 69 65 73 7d 49 6e 74 65 |"{Librar|ies}Inte|
|00003c00| 72 66 61 63 65 2e 6f 22 | 20 b6 0d 00 00 06 00 00 |rface.o"| .......|
|00003c10| 09 00 00 16 00 1b 09 09 | 22 7b 4c 69 62 72 61 72 |........|"{Librar|
|00003c20| 69 65 73 7d 52 75 6e 74 | 69 6d 65 2e 6f 22 20 b6 |ies}Runt|ime.o" .|
|00003c30| 0d 00 00 06 00 00 09 00 | 00 16 00 1b 09 09 22 7b |........|......"{|
|00003c40| 50 4c 69 62 72 61 72 69 | 65 73 7d 50 61 73 4c 69 |PLibrari|es}PasLi|
|00003c50| 62 2e 6f 22 20 b6 0d 00 | 00 06 00 00 09 00 00 16 |b.o" ...|........|
|00003c60| 00 0c 09 09 2d 6f 20 53 | 6f 72 74 65 72 0d 00 06 |....-o S|orter...|
|00003c70| 00 00 09 00 00 16 00 22 | 53 6f 72 74 65 72 2e 70 |......."|Sorter.p|
|00003c80| 2e 6f 20 c4 20 53 6f 72 | 74 65 72 2e 6d 61 6b 65 |.o . Sor|ter.make|
|00003c90| 20 53 6f 72 74 65 72 2e | 70 0d 00 06 00 00 09 00 | Sorter.|p.......|
|00003ca0| 00 16 00 13 09 20 50 61 | 73 63 61 6c 20 20 53 6f |..... Pa|scal So|
|00003cb0| 72 74 65 72 2e 70 0d 00 | 00 06 00 00 09 00 00 16 |rter.p..|........|
|00003cc0| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 3f 01 d4 |........|.....?..|
|00003cd0| 03 00 00 00 00 09 02 02 | 02 02 02 26 02 26 02 26 |........|...&.&.&|
|00003ce0| 02 26 02 26 02 26 02 26 | 02 26 02 26 02 26 00 4f |.&.&.&.&|.&.&.&.O|
|00003cf0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003d00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003d10| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003d20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003d30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 0d 00 |________|______..|
|00003d40| 00 06 00 00 0c 00 00 14 | 00 01 0d ff 00 06 00 00 |........|........|
|00003d50| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00003d60| 7b 00 4f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |{.O_____|________|
|00003d70| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003d80| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003d90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003da0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00003db0| 5f 0d b8 00 06 00 00 0c | 00 00 14 00 01 0d ff 00 |_.......|........|
|00003dc0| 06 00 00 09 00 00 16 00 | 01 0d 00 00 06 00 00 09 |........|........|
|00003dd0| 00 00 16 16 00 3a 20 20 | 20 20 20 20 20 20 20 20 |.....: | |
|00003de0| 20 20 20 20 68 61 76 69 | 6e 67 20 74 6f 20 70 75 | havi|ng to pu|
|00003df0| 74 20 69 74 20 69 6e 20 | 74 68 65 20 49 4e 54 45 |t it in |the INTE|
|00003e00| 52 46 41 43 45 20 73 65 | 63 74 69 6f 6e 20 7d 0d |RFACE se|ction }.|
|00003e10| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00003e20| 09 00 00 16 00 0b 55 4e | 49 54 20 46 72 65 64 3b |......UN|IT Fred;|
|00003e30| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00003e40| 00 00 09 00 00 16 00 0e | 20 20 20 20 49 4e 54 45 |........| INTE|
|00003e50| 52 46 41 43 45 0d 00 06 | 00 00 09 00 00 16 00 01 |RFACE...|........|
|00003e60| 0d 00 00 06 00 00 09 00 | 00 16 00 30 20 20 20 20 |........|...0 |
|00003e70| 20 20 20 20 55 53 45 53 | 20 54 79 70 65 73 2c 20 | USES| Types, |
|00003e80| 4d 65 6d 6f 72 79 2c 20 | 4f 53 55 74 69 6c 73 2c |Memory, |OSUtils,|
|00003e90| 20 48 79 70 65 72 58 43 | 6d 64 3b 0d 00 06 00 00 | HyperXC|md;.....|
|00003ea0| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00003eb0| 00 13 20 20 20 20 49 4d | 50 4c 45 4d 45 4e 54 41 |.. IM|PLEMENTA|
|00003ec0| 54 49 4f 4e 0d 00 00 06 | 00 00 09 00 00 16 00 01 |TION....|........|
|00003ed0| 0d 00 00 06 00 00 09 00 | 00 16 00 0d 20 20 20 20 |........|.... |
|00003ee0| 20 20 20 20 54 59 50 45 | 0d 00 00 06 00 00 09 00 | TYPE|........|
|00003ef0| 00 16 00 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00003f00| 41 35 52 65 66 54 79 70 | 65 20 3d 20 48 61 6e 64 |A5RefTyp|e = Hand|
|00003f10| 6c 65 3b 0d 00 06 00 00 | 09 00 00 16 00 59 20 20 |le;.....|.....Y |
|00003f20| 20 20 20 20 20 20 20 20 | 20 20 4c 6f 6e 67 41 72 | | LongAr|
|00003f30| 72 61 79 20 3d 20 41 52 | 52 41 59 20 5b 30 2e 2e |ray = AR|RAY [0..|
|00003f40| 30 5d 20 4f 46 20 4c 6f | 6e 67 69 6e 74 3b 20 20 |0] OF Lo|ngint; |
|00003f50| 20 20 7b 20 54 68 65 73 | 65 20 64 65 66 69 6e 65 | { Thes|e define|
|00003f60| 20 6f 75 72 20 6c 69 73 | 74 20 6f 66 20 65 6e 74 | our lis|t of ent|
|00003f70| 72 69 65 73 20 7d 0d 00 | 00 06 00 00 09 00 00 16 |ries }..|........|
|00003f80| 00 26 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 6f |.& | Lo|
|00003f90| 6e 67 50 6f 69 6e 74 65 | 72 20 3d 20 5e 4c 6f 6e |ngPointe|r = ^Lon|
|00003fa0| 67 41 72 72 61 79 3b 0d | 00 06 00 00 09 00 00 16 |gArray;.|........|
|00003fb0| 00 27 20 20 20 20 20 20 | 20 20 20 20 20 20 4c 6f |.' | Lo|
|00003fc0| 6e 67 48 61 6e 64 6c 65 | 20 3d 20 5e 4c 6f 6e 67 |ngHandle| = ^Long|
|00003fd0| 50 6f 69 6e 74 65 72 3b | 0d 00 00 06 00 00 09 00 |Pointer;|........|
|00003fe0| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 0e |........|........|
|00003ff0| 20 20 20 20 20 20 20 20 | 43 4f 4e 53 54 0d 00 06 | |CONST...|
|00004000| 00 00 09 00 00 16 00 5a | 20 20 20 20 20 20 20 20 |.......Z| |
|00004010| 20 20 20 20 6b 46 69 72 | 73 74 54 69 6d 65 20 3d | kFir|stTime =|
|00004020| 20 31 3b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1; | |
|00004030| 7b 20 62 65 69 6e 67 20 | 63 61 6c 6c 65 64 20 66 |{ being |called f|
|00004040| 6f 72 20 74 68 65 20 66 | 69 72 73 74 20 74 69 6d |or the f|irst tim|
|00004050| 65 2e 20 49 6e 69 74 69 | 61 6c 69 7a 65 2e 20 7d |e. Initi|alize. }|
|00004060| 20 0d 00 06 00 00 09 00 | 00 16 00 56 20 20 20 20 | .......|...V |
|00004070| 20 20 20 20 20 20 20 20 | 6b 4c 61 73 74 54 69 6d | |kLastTim|
|00004080| 65 20 3d 20 32 3b 20 20 | 20 20 20 20 20 20 20 20 |e = 2; | |
|00004090| 20 20 20 20 7b 20 62 65 | 69 6e 67 20 63 61 6c 6c | { be|ing call|
|000040a0| 65 64 20 66 6f 72 20 74 | 68 65 20 6c 61 73 74 20 |ed for t|he last |
|000040b0| 74 69 6d 65 2e 20 43 6c | 65 61 6e 20 75 70 2e 20 |time. Cl|ean up. |
|000040c0| 7d 0d 00 06 00 00 09 00 | 00 16 00 5e 20 20 20 20 |}.......|...^ |
|000040d0| 20 20 20 20 20 20 20 20 | 6b 41 64 64 45 6e 74 72 | |kAddEntr|
|000040e0| 79 20 3d 20 33 3b 20 20 | 20 20 20 20 20 20 20 20 |y = 3; | |
|000040f0| 20 20 20 20 7b 20 62 65 | 69 6e 67 20 63 61 6c 6c | { be|ing call|
|00004100| 65 64 20 74 6f 20 61 64 | 64 20 61 6e 20 65 6e 74 |ed to ad|d an ent|
|00004110| 72 79 20 74 6f 20 6f 75 | 72 20 6c 69 73 74 20 74 |ry to ou|r list t|
|00004120| 6f 20 73 6f 72 74 2e 20 | 7d 0d 00 06 00 00 09 00 |o sort. |}.......|
|00004130| 00 16 00 57 20 20 20 20 | 20 20 20 20 20 20 20 20 |...W | |
|00004140| 6b 53 6f 72 74 45 6e 74 | 72 69 65 73 20 3d 20 34 |kSortEnt|ries = 4|
|00004150| 3b 20 20 20 20 20 20 20 | 20 20 20 20 7b 20 62 65 |; | { be|
|00004160| 69 6e 67 20 63 61 6c 6c | 65 64 20 74 6f 20 73 6f |ing call|ed to so|
|00004170| 72 74 20 61 6e 64 20 64 | 69 73 70 6c 61 79 20 6f |rt and d|isplay o|
|00004180| 75 72 20 6c 69 73 74 2e | 20 7d 0d 00 00 06 00 00 |ur list.| }......|
|00004190| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|000041a0| 00 52 20 20 20 20 20 20 | 20 20 20 20 20 20 6b 43 |.R | kC|
|000041b0| 6f 6d 6d 61 6e 64 49 6e | 64 65 78 20 3d 20 31 3b |ommandIn|dex = 1;|
|000041c0| 20 20 20 20 20 20 20 20 | 20 20 7b 20 50 61 72 61 | | { Para|
|000041d0| 6d 65 74 65 72 20 31 20 | 68 6f 6c 64 73 20 6f 75 |meter 1 |holds ou|
|000041e0| 72 20 63 6f 6d 6d 61 6e | 64 20 6e 75 6d 62 65 72 |r comman|d number|
|000041f0| 2e 20 7d 0d 00 06 00 00 | 09 00 00 16 00 56 20 20 |. }.....|.....V |
|00004200| 20 20 20 20 20 20 20 20 | 20 20 6b 41 35 52 65 66 | | kA5Ref|
|00004210| 49 6e 64 65 78 20 3d 20 | 32 3b 20 20 20 20 20 20 |Index = |2; |
|00004220| 20 20 20 20 20 20 7b 20 | 50 61 72 61 6d 65 74 65 | { |Paramete|
|00004230| 72 20 32 20 68 6f 6c 64 | 73 20 6f 75 72 20 41 35 |r 2 hold|s our A5|
|00004240| 20 77 6f 72 6c 64 20 72 | 65 66 65 72 65 6e 63 65 | world r|eference|
|00004250| 2e 20 7d 0d 00 06 00 00 | 09 00 00 16 00 5b 20 20 |. }.....|.....[ |
|00004260| 20 20 20 20 20 20 20 20 | 20 20 6b 45 6e 74 72 79 | | kEntry|
|00004270| 49 6e 64 65 78 20 3d 20 | 33 3b 20 20 20 20 20 20 |Index = |3; |
|00004280| 20 20 20 20 20 20 7b 20 | 50 61 72 61 6d 65 74 65 | { |Paramete|
|00004290| 72 20 33 20 68 6f 6c 64 | 73 20 61 20 6e 75 6d 62 |r 3 hold|s a numb|
|000042a0| 65 72 20 74 6f 20 61 64 | 64 20 74 6f 20 6f 75 72 |er to ad|d to our|
|000042b0| 20 6c 69 73 74 2e 20 7d | 0d 00 00 06 00 00 09 00 | list. }|........|
|000042c0| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 0c |........|........|
|000042d0| 20 20 20 20 20 20 20 20 | 56 41 52 0d 00 06 00 00 | |VAR.....|
|000042e0| 09 00 00 16 00 5c 20 20 | 20 20 20 20 20 20 20 20 |.....\ | |
|000042f0| 20 20 67 48 6f 73 74 41 | 35 3a 20 4c 6f 6e 67 69 | gHostA|5: Longi|
|00004300| 6e 74 3b 20 20 20 20 20 | 20 20 20 20 20 20 7b 20 |nt; | { |
|00004310| 54 68 65 20 73 61 76 65 | 64 20 76 61 6c 75 65 20 |The save|d value |
|00004320| 6f 66 20 6f 75 72 20 68 | 6f 73 74 27 73 20 28 48 |of our h|ost's (H|
|00004330| 79 70 65 72 43 61 72 64 | 27 73 29 20 41 35 2e 20 |yperCard|'s) A5. |
|00004340| 7d 0d 00 06 00 00 09 00 | 00 16 00 4f 20 20 20 20 |}.......|...O |
|00004350| 20 20 20 20 20 20 20 20 | 67 4e 75 6d 4f 66 45 6e | |gNumOfEn|
|00004360| 74 72 69 65 73 3a 20 4c | 6f 6e 67 69 6e 74 3b 20 |tries: L|ongint; |
|00004370| 20 20 20 20 7b 20 54 68 | 65 20 6e 75 6d 62 65 72 | { Th|e number|
|00004380| 20 6f 66 20 65 6e 74 72 | 69 65 73 20 69 6e 20 6f | of entr|ies in o|
|00004390| 75 72 20 6c 69 73 74 2e | 20 7d 0d ff 00 06 00 00 |ur list.| }......|
|000043a0| 09 00 00 16 00 5a 20 20 | 20 20 20 20 20 20 20 20 |.....Z | |
|000043b0| 20 20 67 45 6e 74 72 69 | 65 73 3a 20 4c 6f 6e 67 | gEntri|es: Long|
|000043c0| 48 61 6e 64 6c 65 3b 20 | 20 20 20 20 20 20 7b 20 |Handle; | { |
|000043d0| 4f 75 72 20 6c 69 73 74 | 20 6f 66 20 65 6e 74 72 |Our list| of entr|
|000043e0| 69 65 73 2e 20 47 65 74 | 73 20 65 78 70 61 6e 64 |ies. Get|s expand|
|000043f0| 65 64 20 61 73 20 6e 65 | 65 64 65 64 2e 20 7d 0d |ed as ne|eded. }.|
|00004400| 00 06 00 00 09 00 00 16 | 00 01 0d ff 00 06 00 00 |........|........|
|00004410| 09 00 00 16 00 01 0d ff | 00 06 00 00 09 00 00 16 |........|........|
|00004420| 00 5d 20 20 20 20 7b 20 | 54 68 65 20 66 6f 6c 6c |.] { |The foll|
|00004430| 6f 77 69 6e 67 20 32 20 | 66 75 6e 63 74 69 6f 6e |owing 2 |function|
|00004440| 73 20 61 72 65 20 74 68 | 65 20 6f 6e 65 73 20 74 |s are th|e ones t|
|00004450| 68 61 74 20 73 65 74 20 | 75 70 20 61 6e 64 20 6d |hat set |up and m|
|00004460| 61 69 6e 74 61 69 6e 20 | 6f 75 72 20 41 35 20 77 |aintain |our A5 w|
|00004470| 6f 72 6c 64 2e 20 59 6f | 75 20 6d 75 73 74 0d 00 |orld. Yo|u must..|
|00004480| 00 06 00 00 09 00 00 16 | 00 38 20 20 20 20 20 20 |........|.8 |
|00004490| 4c 69 6e 6b 20 77 69 74 | 68 20 52 75 6e 54 69 6d |Link wit|h RunTim|
|000044a0| 65 2e 6f 20 6f 72 20 43 | 52 75 6e 54 69 6d 65 2e |e.o or C|RunTime.|
|000044b0| 6f 20 74 6f 20 63 61 6c | 6c 20 74 68 65 6d 2e 20 |o to cal|l them. |
|000044c0| 7d 0d 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |}.......|........|
|000044d0| 00 00 09 00 00 16 00 25 | 20 20 20 20 20 20 20 20 |.......%| |
|000044e0| 50 52 4f 43 45 44 55 52 | 45 20 41 35 49 6e 69 74 |PROCEDUR|E A5Init|
|000044f0| 28 6d 79 41 35 3a 20 50 | 74 72 29 3b 0d 00 00 06 |(myA5: P|tr);....|
|00004500| 00 00 09 00 00 16 00 19 | 20 20 20 20 20 20 20 20 |........| |
|00004510| 20 20 20 20 43 3b 20 45 | 58 54 45 52 4e 41 4c 3b | C; E|XTERNAL;|
|00004520| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00004530| 00 00 09 00 00 16 00 22 | 20 20 20 20 20 20 20 20 |......."| |
|00004540| 46 55 4e 43 54 49 4f 4e | 20 41 35 53 69 7a 65 3a |FUNCTION| A5Size:|
|00004550| 20 4c 6f 6e 67 69 6e 74 | 3b 0d 00 06 00 00 09 00 | Longint|;.......|
|00004560| 00 16 00 19 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00004570| 43 3b 20 45 58 54 45 52 | 4e 41 4c 3b 0d 00 00 06 |C; EXTER|NAL;....|
|00004580| 00 00 09 00 00 16 00 0d | 20 20 20 20 20 20 20 20 |........| |
|00004590| 20 20 20 20 0d 00 00 06 | 00 00 09 00 00 16 00 5d | ....|.......]|
|000045a0| 20 20 20 20 7b 20 46 6f | 72 77 61 72 64 20 72 65 | { Fo|rward re|
|000045b0| 66 65 72 65 6e 63 65 20 | 74 6f 20 74 68 65 20 6d |ference |to the m|
|000045c0| 61 69 6e 20 70 72 6f 63 | 65 64 75 72 65 2e 20 54 |ain proc|edure. T|
|000045d0| 68 69 73 20 69 73 20 73 | 6f 20 77 65 20 63 61 6e |his is s|o we can|
|000045e0| 20 6a 75 6d 70 20 74 6f | 20 69 74 20 66 72 6f 6d | jump to| it from|
|000045f0| 20 45 4e 54 52 59 50 4f | 49 4e 54 2c 0d 00 00 06 | ENTRYPO|INT,....|
|00004600| 00 00 09 00 00 16 00 57 | 20 20 20 20 20 20 77 68 |.......W| wh|
|00004610| 69 63 68 20 72 65 70 72 | 65 73 65 6e 74 73 20 74 |ich repr|esents t|
|00004620| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00004630| 74 68 65 20 58 43 4d 44 | 2c 20 61 6e 64 20 69 73 |the XCMD|, and is|
|00004640| 20 77 68 61 74 20 48 79 | 70 65 72 43 61 72 64 20 | what Hy|perCard |
|00004650| 63 61 6c 6c 73 20 77 68 | 65 6e 20 69 74 20 0d 00 |calls wh|en it ..|
|00004660| 00 06 00 00 09 00 00 16 | 00 12 20 20 20 20 20 20 |........|.. |
|00004670| 63 61 6c 6c 73 20 75 73 | 2e 20 7d 0d 00 06 00 00 |calls us|. }.....|
|00004680| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00004690| 00 2d 20 20 20 20 20 20 | 20 20 50 52 4f 43 45 44 |.- | PROCED|
|000046a0| 55 52 45 20 53 6f 72 74 | 65 72 28 70 61 72 61 6d |URE Sort|er(param|
|000046b0| 50 74 72 3a 20 58 43 6d | 64 50 74 72 29 3b 0d 00 |Ptr: XCm|dPtr);..|
|000046c0| 00 06 00 00 09 00 00 16 | 00 15 20 20 20 20 20 20 |........|.. |
|000046d0| 20 20 20 20 20 20 46 4f | 52 57 41 52 44 3b 0d 00 | FO|RWARD;..|
|000046e0| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|000046f0| 09 00 00 16 00 31 20 20 | 20 20 20 20 20 20 50 52 |.....1 | PR|
|00004700| 4f 43 45 44 55 52 45 20 | 45 4e 54 52 59 50 4f 49 |OCEDURE |ENTRYPOI|
|00004710| 4e 54 28 70 61 72 61 6d | 50 74 72 3a 20 58 43 6d |NT(param|Ptr: XCm|
|00004720| 64 50 74 72 29 3b 0d 00 | 00 06 00 00 09 00 00 16 |dPtr);..|........|
|00004730| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 12 20 20 |........|...... |
|00004740| 20 20 20 20 20 20 20 20 | 20 20 42 45 47 49 4e 0d | | BEGIN.|
|00004750| 00 06 00 00 09 00 00 16 | 00 22 20 20 20 20 20 20 |........|." |
|00004760| 20 20 20 20 20 20 20 20 | 20 20 53 6f 72 74 65 72 | | Sorter|
|00004770| 28 70 61 72 61 6d 50 74 | 72 29 3b 0d 00 06 00 00 |(paramPt|r);.....|
|00004780| 09 00 00 16 00 11 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00004790| 20 20 45 4e 44 3b 0d 00 | 00 06 00 00 09 00 00 16 | END;..|........|
|000047a0| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 47 20 20 |........|.....G |
|000047b0| 20 20 7b 20 54 68 65 20 | 6e 65 78 74 20 34 20 72 | { The |next 4 r|
|000047c0| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 6f 75 72 20 |outines |are our |
|000047d0| 67 6c 75 65 20 74 6f 20 | 74 68 65 20 41 35 20 6d |glue to |the A5 m|
|000047e0| 61 69 6e 74 65 6e 61 6e | 63 65 20 72 6f 75 74 69 |aintenan|ce routi|
|000047f0| 6e 65 73 2e 0d 00 00 06 | 00 00 09 00 00 16 00 01 |nes.....|........|
|00004800| 0d 00 00 06 00 00 09 00 | 00 16 00 5b 20 20 20 20 |........|...[ |
|00004810| 20 20 20 20 4d 61 6b 65 | 41 35 57 6f 72 6c 64 20 | Make|A5World |
|00004820| 63 61 6c 6c 73 20 41 35 | 53 69 7a 65 20 74 6f 20 |calls A5|Size to |
|00004830| 67 65 74 20 74 68 65 20 | 61 6d 6f 75 6e 74 20 6f |get the |amount o|
|00004840| 66 20 6d 65 6d 6f 72 79 | 20 72 65 71 75 69 72 65 |f memory| require|
|00004850| 64 20 66 6f 72 20 6f 75 | 72 20 41 35 20 77 6f 72 |d for ou|r A5 wor|
|00004860| 6c 64 2e 20 49 74 0d 00 | 00 06 00 00 09 00 00 16 |ld. It..|........|
|00004870| 00 57 20 20 20 20 20 20 | 20 20 20 20 20 20 74 68 |.W | th|
|00004880| 65 6e 20 63 61 6c 6c 73 | 20 4e 65 77 48 61 6e 64 |en calls| NewHand|
|00004890| 6c 65 20 74 6f 20 61 6c | 6c 6f 63 61 74 65 20 74 |le to al|locate t|
|000048a0| 68 61 74 20 6d 65 6d 6f | 72 79 2c 20 61 6e 64 20 |hat memo|ry, and |
|000048b0| 41 35 49 6e 69 74 20 74 | 6f 20 69 6e 69 74 69 61 |A5Init t|o initia|
|000048c0| 6c 69 7a 65 20 69 74 2e | 0d 00 00 06 00 00 09 00 |lize it.|........|
|000048d0| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 59 |........|.......Y|
|000048e0| 20 20 20 20 20 20 20 20 | 53 65 74 41 35 57 6f 72 | |SetA5Wor|
|000048f0| 6c 64 20 74 61 6b 65 73 | 20 63 61 72 65 20 6f 66 |ld takes| care of|
|00004900| 20 73 77 61 70 70 69 6e | 67 20 69 6e 20 6f 75 72 | swappin|g in our|
|00004910| 20 41 35 20 77 6f 72 6c | 64 2e 20 49 74 20 6c 6f | A5 worl|d. It lo|
|00004920| 63 6b 73 20 64 6f 77 6e | 20 74 68 65 20 68 61 6e |cks down| the han|
|00004930| 64 6c 65 20 74 68 61 74 | 0d 00 00 06 00 00 09 00 |dle that|........|
|00004940| 00 16 00 54 20 20 20 20 | 20 20 20 20 20 20 20 20 |...T | |
|00004950| 68 6f 6c 64 73 20 6f 75 | 72 20 41 35 20 64 61 74 |holds ou|r A5 dat|
|00004960| 61 2c 20 73 65 74 73 20 | 41 35 20 74 6f 20 70 6f |a, sets |A5 to po|
|00004970| 69 6e 74 20 74 6f 20 69 | 74 2c 20 61 6e 64 20 72 |int to i|t, and r|
|00004980| 65 74 75 72 6e 73 20 74 | 68 65 20 6f 72 69 67 69 |eturns t|he origi|
|00004990| 6e 61 6c 20 41 35 2e 0d | 00 06 00 00 09 00 00 16 |nal A5..|........|
|000049a0| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 57 20 20 |........|.....W |
|000049b0| 20 20 20 20 20 20 52 65 | 73 74 6f 72 65 41 35 77 | Re|storeA5w|
|000049c0| 6f 72 6c 64 20 72 65 76 | 65 72 73 65 73 20 74 68 |orld rev|erses th|
|000049d0| 65 20 65 66 66 65 63 74 | 73 20 6f 66 20 53 65 74 |e effect|s of Set|
|000049e0| 41 35 57 6f 72 6c 64 2e | 20 49 74 20 72 65 73 74 |A5World.| It rest|
|000049f0| 6f 72 65 73 20 41 35 20 | 74 6f 20 74 68 65 20 76 |ores A5 |to the v|
|00004a00| 61 6c 75 65 0d 00 00 06 | 00 00 09 00 00 16 00 57 |alue....|.......W|
|00004a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 75 72 20 | | our |
|00004a20| 68 6f 73 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |host app|lication|
|00004a30| 20 6e 65 65 64 73 2c 20 | 61 6e 64 20 75 6e 6c 6f | needs, |and unlo|
|00004a40| 63 6b 73 20 6f 75 72 20 | 62 6c 6f 63 6b 20 6f 66 |cks our |block of|
|00004a50| 20 67 6c 6f 62 61 6c 20 | 64 61 74 61 20 73 6f 20 | global |data so |
|00004a60| 61 73 20 6e 6f 74 0d 00 | 00 06 00 00 09 00 00 16 |as not..|........|
|00004a70| 00 29 20 20 20 20 20 20 | 20 20 20 20 20 20 74 6f |.) | to|
|00004a80| 20 66 72 61 67 6d 65 6e | 74 20 6f 75 72 20 68 6f | fragmen|t our ho|
|00004a90| 73 74 27 73 20 68 65 61 | 70 2e 0d ff 00 06 00 00 |st's hea|p.......|
|00004aa0| 09 00 00 16 00 01 0d ff | 00 06 00 00 09 00 00 16 |........|........|
|00004ab0| 00 58 20 20 20 20 20 20 | 20 20 44 69 73 70 6f 73 |.X | Dispos|
|00004ac0| 65 41 35 57 6f 72 6c 64 | 20 69 73 20 63 61 6c 6c |eA5World| is call|
|00004ad0| 65 64 20 77 68 65 6e 20 | 77 65 20 61 72 65 20 61 |ed when |we are a|
|00004ae0| 6c 6c 20 64 6f 6e 65 2e | 20 49 74 20 69 73 20 69 |ll done.| It is i|
|00004af0| 6e 20 63 68 61 72 67 65 | 20 6f 66 20 64 69 73 70 |n charge| of disp|
|00004b00| 6f 73 69 6e 67 20 6f 75 | 72 0d 00 06 00 00 09 00 |osing ou|r.......|
|00004b10| 00 16 00 49 20 20 20 20 | 20 20 20 20 20 20 20 20 |...I | |
|00004b20| 67 6c 6f 62 61 6c 20 64 | 61 74 61 2e 20 52 69 67 |global d|ata. Rig|
|00004b30| 68 74 20 6e 6f 77 2c 20 | 74 68 69 73 20 69 73 20 |ht now, |this is |
|00004b40| 6a 75 73 74 20 61 20 63 | 61 6c 6c 20 74 6f 20 44 |just a c|all to D|
|00004b50| 69 73 70 6f 73 48 61 6e | 64 6c 65 2e 0d 00 00 06 |isposHan|dle.....|
|00004b60| 00 00 09 00 00 16 00 06 | 20 20 20 20 7d 0d 00 06 |........| }...|
|00004b70| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|00004b80| 00 16 00 35 20 20 20 20 | 20 20 20 20 50 52 4f 43 |...5 | PROC|
|00004b90| 45 44 55 52 45 20 4d 61 | 6b 65 41 35 57 6f 72 6c |EDURE Ma|keA5Worl|
|00004ba0| 64 28 56 41 52 20 41 35 | 52 65 66 3a 20 41 35 52 |d(VAR A5|Ref: A5R|
|00004bb0| 65 66 54 79 70 65 29 3b | 0d 00 00 06 00 00 09 00 |efType);|........|
|00004bc0| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 12 |........|........|
|00004bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 42 45 47 49 | | BEGI|
|00004be0| 4e 0d 00 06 00 00 09 00 | 00 16 00 2c 20 20 20 20 |N.......|..., |
|00004bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 41 35 52 65 | | A5Re|
|00004c00| 66 20 3a 3d 20 4e 65 77 | 48 61 6e 64 6c 65 28 41 |f := New|Handle(A|
|00004c10| 35 53 69 7a 65 29 3b 0d | 00 06 00 00 09 00 00 16 |5Size);.|........|
|00004c20| 00 1e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004c30| 20 20 48 4c 6f 63 6b 28 | 41 35 52 65 66 29 3b 0d | HLock(|A5Ref);.|
|00004c40| 00 06 00 00 09 00 00 16 | 00 39 20 20 20 20 20 20 |........|.9 |
|00004c50| 20 20 20 20 20 20 20 20 | 20 20 41 35 49 6e 69 74 | | A5Init|
|00004c60| 28 50 74 72 28 4f 52 44 | 34 28 41 35 52 65 66 5e |(Ptr(ORD|4(A5Ref^|
|00004c70| 29 20 2b 20 41 35 53 69 | 7a 65 20 2d 20 33 32 29 |) + A5Si|ze - 32)|
|00004c80| 29 3b 0d 00 00 06 00 00 | 09 00 00 16 00 20 20 20 |);......|..... |
|00004c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 48 55 | | HU|
|00004ca0| 6e 6c 6f 63 6b 28 41 35 | 52 65 66 29 3b 0d 00 06 |nlock(A5|Ref);...|
|00004cb0| 00 00 09 00 00 16 00 11 | 20 20 20 20 20 20 20 20 |........| |
|00004cc0| 20 20 20 20 45 4e 44 3b | 0d 00 00 06 00 00 09 00 | END;|........|
|00004cd0| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 38 |........|.......8|
|00004ce0| 20 20 20 20 20 20 20 20 | 46 55 4e 43 54 49 4f 4e | |FUNCTION|
|00004cf0| 20 53 65 74 41 35 57 6f | 72 6c 64 28 41 35 52 65 | SetA5Wo|rld(A5Re|
|00004d00| 66 3a 20 41 35 52 65 66 | 54 79 70 65 29 3a 20 4c |f: A5Ref|Type): L|
|00004d10| 6f 6e 67 69 6e 74 3b 0d | 00 06 00 00 09 00 00 16 |ongint;.|........|
|00004d20| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 12 20 20 |........|...... |
|00004d30| 20 20 20 20 20 20 20 20 | 20 20 42 45 47 49 4e 0d | | BEGIN.|
|00004d40| 00 06 00 00 09 00 00 16 | 00 1e 20 20 20 20 20 20 |........|.. |
|00004d50| 20 20 20 20 20 20 20 20 | 20 20 48 4c 6f 63 6b 28 | | HLock(|
|00004d60| 41 35 52 65 66 29 3b 0d | 00 06 00 00 09 00 00 16 |A5Ref);.|........|
|00004d70| 00 44 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.D | |
|00004d80| 20 20 53 65 74 41 35 57 | 6f 72 6c 64 20 3a 3d 20 | SetA5W|orld := |
|00004d90| 53 65 74 41 35 28 4c 6f | 6e 67 69 6e 74 28 41 35 |SetA5(Lo|ngint(A5|
|00004da0| 52 65 66 5e 29 20 2b 20 | 41 35 53 69 7a 65 20 2d |Ref^) + |A5Size -|
|00004db0| 20 33 32 29 3b 0d 00 06 | 00 00 09 00 00 16 00 11 | 32);...|........|
|00004dc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 4e 44 3b | | END;|
|00004dd0| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00004de0| 00 00 09 00 00 16 00 44 | 20 20 20 20 20 20 20 20 |.......D| |
|00004df0| 50 52 4f 43 45 44 55 52 | 45 20 52 65 73 74 6f 72 |PROCEDUR|E Restor|
|00004e00| 65 41 35 57 6f 72 6c 64 | 28 6f 6c 64 41 35 3a 20 |eA5World|(oldA5: |
|00004e10| 4c 6f 6e 67 69 6e 74 3b | 20 41 35 52 65 66 3a 20 |Longint;| A5Ref: |
|00004e20| 41 35 52 65 66 54 79 70 | 65 29 3b 0d 00 06 00 00 |A5RefTyp|e);.....|
|00004e30| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00004e40| 00 12 20 20 20 20 20 20 | 20 20 20 20 20 20 42 45 |.. | BE|
|00004e50| 47 49 4e 0d 00 06 00 00 | 09 00 00 16 00 2f 20 20 |GIN.....|...../ |
|00004e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 49 46 | | IF|
|00004e70| 20 42 6f 6f 6c 65 61 6e | 28 53 65 74 41 35 28 6f | Boolean|(SetA5(o|
|00004e80| 6c 64 41 35 29 29 20 54 | 48 45 4e 3b 0d 00 00 06 |ldA5)) T|HEN;....|
|00004e90| 00 00 09 00 00 16 00 20 | 20 20 20 20 20 20 20 20 |....... | |
|00004ea0| 20 20 20 20 20 20 20 20 | 48 55 6e 6c 6f 63 6b 28 | |HUnlock(|
|00004eb0| 41 35 52 65 66 29 3b 0d | 00 06 00 00 09 00 00 16 |A5Ref);.|........|
|00004ec0| 00 11 20 20 20 20 20 20 | 20 20 20 20 20 20 45 4e |.. | EN|
|00004ed0| 44 3b 0d 00 00 06 00 00 | 09 00 00 16 00 01 0d 00 |D;......|........|
|00004ee0| 00 06 00 00 09 00 00 16 | 00 34 20 20 20 20 20 20 |........|.4 |
|00004ef0| 20 20 50 52 4f 43 45 44 | 55 52 45 20 44 69 73 70 | PROCED|URE Disp|
|00004f00| 6f 73 65 41 35 57 6f 72 | 6c 64 28 41 35 52 65 66 |oseA5Wor|ld(A5Ref|
|00004f10| 3a 20 41 35 52 65 66 54 | 79 70 65 29 3b 0d 00 06 |: A5RefT|ype);...|
|00004f20| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|00004f30| 00 16 00 12 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00004f40| 42 45 47 49 4e 0d 00 06 | 00 00 09 00 00 16 00 25 |BEGIN...|.......%|
|00004f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004f60| 44 69 73 70 6f 73 48 61 | 6e 64 6c 65 28 41 35 52 |DisposHa|ndle(A5R|
|00004f70| 65 66 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 11 |ef);....|........|
|00004f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 4e 44 3b | | END;|
|00004f90| 0d 00 00 06 00 00 09 00 | 00 16 00 0d 20 20 20 20 |........|.... |
|00004fa0| 20 20 20 20 20 20 20 20 | 0d 00 00 06 00 00 09 00 | |........|
|00004fb0| 00 16 00 53 20 20 20 20 | 7b 20 55 74 69 6c 69 74 |...S |{ Utilit|
|00004fc0| 79 20 72 6f 75 74 69 6e | 65 73 20 66 6f 72 20 75 |y routin|es for u|
|00004fd0| 73 69 6e 67 20 74 68 65 | 20 48 79 70 65 72 43 61 |sing the| HyperCa|
|00004fe0| 72 64 20 63 61 6c 6c 62 | 61 63 6b 73 2e 20 54 68 |rd callb|acks. Th|
|00004ff0| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 66 75 6e |ere are |some fun|
|00005000| 63 74 69 6f 6e 73 0d 00 | 00 06 00 00 09 00 00 16 |ctions..|........|
|00005010| 00 53 20 20 20 20 20 20 | 74 68 61 74 20 77 65 20 |.S |that we |
|00005020| 6e 65 65 64 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |need to |perform |
|00005030| 6d 61 6e 79 20 74 69 6d | 65 73 2c 20 6f 72 20 77 |many tim|es, or w|
|00005040| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 65 6e 63 |ould lik|e to enc|
|00005050| 61 70 73 75 6c 61 74 65 | 20 69 6e 74 6f 20 6c 69 |apsulate| into li|
|00005060| 74 74 6c 65 0d 00 00 06 | 00 00 09 00 00 16 00 1c |ttle....|........|
|00005070| 20 20 20 20 20 20 72 6f | 75 74 69 6e 65 73 20 66 | ro|utines f|
|00005080| 6f 72 20 63 6c 61 72 69 | 74 79 3a 0d 00 06 00 00 |or clari|ty:.....|
|00005090| 09 00 00 16 00 07 20 20 | 20 20 20 20 0d 00 00 06 |...... | ....|
|000050a0| 00 00 09 00 00 16 00 57 | 20 20 20 20 20 20 20 20 |.......W| |
|000050b0| 56 61 6c 75 65 4f 66 45 | 78 70 72 65 73 73 69 6f |ValueOfE|xpressio|
|000050c0| 6e 20 2d 20 67 69 76 65 | 6e 20 61 6e 20 69 6e 64 |n - give|n an ind|
|000050d0| 65 78 20 66 72 6f 6d 20 | 31 20 74 6f 20 31 36 2c |ex from |1 to 16,|
|000050e0| 20 74 68 69 73 20 65 76 | 61 6c 75 61 74 65 73 20 | this ev|aluates |
|000050f0| 74 68 65 20 65 78 70 72 | 65 73 73 69 6f 6e 0d 00 |the expr|ession..|
|00005100| 00 06 00 00 09 00 00 16 | 00 52 20 20 20 20 20 20 |........|.R |
|00005110| 20 20 20 20 20 20 6f 66 | 20 74 68 61 74 20 70 61 | of| that pa|
|00005120| 72 61 6d 65 74 65 72 2e | 20 54 68 69 73 20 69 73 |rameter.| This is|
|00005130| 20 75 73 65 64 20 74 6f | 20 73 63 6f 6f 70 20 6f | used to| scoop o|
|00005140| 75 74 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ut the v|alue of |
|00005150| 74 68 65 20 63 6f 6d 6d | 61 6e 64 0d 00 06 00 00 |the comm|and.....|
|00005160| 09 00 00 16 00 52 20 20 | 20 20 20 20 20 20 20 20 |.....R | |
|00005170| 20 20 73 65 6c 65 63 74 | 6f 72 2c 20 6f 75 72 20 | select|or, our |
|00005180| 41 35 20 70 6f 69 6e 74 | 65 72 2c 20 61 6e 64 20 |A5 point|er, and |
|00005190| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 74 68 65 |the valu|e of the|
|000051a0| 20 6e 75 6d 62 65 72 20 | 77 65 20 61 72 65 20 74 | number |we are t|
|000051b0| 6f 20 73 74 69 63 6b 0d | 00 06 00 00 09 00 00 16 |o stick.|........|
|000051c0| 00 2e 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e |.. | in|
|000051d0| 74 6f 20 6f 75 72 20 6c | 69 73 74 20 6f 66 20 6e |to our l|ist of n|
|000051e0| 75 6d 62 65 72 73 20 74 | 6f 20 73 6f 72 74 2e 0d |umbers t|o sort..|
|000051f0| 00 06 00 00 09 00 00 16 | 00 0d 20 20 20 20 20 20 |........|.. |
|00005200| 20 20 20 20 20 20 0d 00 | 00 06 00 00 09 00 00 16 | ..|........|
|00005210| 00 53 20 20 20 20 20 20 | 20 20 4c 6f 6e 67 54 6f |.S | LongTo|
|00005220| 5a 65 72 6f 20 2d 20 43 | 6f 6e 76 65 72 74 20 61 |Zero - C|onvert a|
|00005230| 20 4c 4f 4e 47 49 4e 54 | 20 69 6e 74 6f 20 61 20 | LONGINT| into a |
|00005240| 43 20 28 7a 65 72 6f 20 | 64 65 6c 69 6d 69 74 65 |C (zero |delimite|
|00005250| 64 29 20 73 74 72 69 6e | 67 2e 20 52 65 74 75 72 |d) strin|g. Retur|
|00005260| 6e 73 20 61 0d 00 00 06 | 00 00 09 00 00 16 00 2e |ns a....|........|
|00005270| 20 20 20 20 20 20 20 20 | 20 20 20 20 68 61 6e 64 | | hand|
|00005280| 6c 65 20 74 68 61 74 20 | 63 6f 6e 74 61 69 6e 73 |le that |contains|
|00005290| 20 74 68 61 74 20 73 74 | 72 69 6e 67 2e 0d 00 06 | that st|ring....|
|000052a0| 00 00 09 00 00 16 00 0d | 20 20 20 20 20 20 20 20 |........| |
|000052b0| 20 20 20 20 0d 00 00 06 | 00 00 09 00 00 16 00 56 | ....|.......V|
|000052c0| 20 20 20 20 20 20 20 20 | 53 65 74 47 6c 6f 62 61 | |SetGloba|
|000052d0| 6c 41 74 20 2d 20 67 69 | 76 65 6e 20 74 68 65 20 |lAt - gi|ven the |
|000052e0| 69 6e 64 65 78 20 74 6f | 20 6f 6e 65 20 6f 66 20 |index to| one of |
|000052f0| 74 68 65 20 31 36 20 70 | 61 72 61 6d 65 74 65 72 |the 16 p|arameter|
|00005300| 73 20 61 6e 64 20 61 20 | 4c 4f 4e 47 49 4e 54 2c |s and a |LONGINT,|
|00005310| 20 74 68 69 73 0d 00 06 | 00 00 09 00 00 16 00 4d | this...|.......M|
|00005320| 20 20 20 20 20 20 20 20 | 20 20 20 20 72 6f 75 74 | | rout|
|00005330| 69 6e 65 73 20 73 65 74 | 73 20 74 68 65 20 67 6c |ines set|s the gl|
|00005340| 6f 62 61 6c 20 66 6f 75 | 6e 64 20 69 6e 20 74 68 |obal fou|nd in th|
|00005350| 61 74 20 70 61 72 61 6d | 65 74 65 72 20 74 6f 20 |at param|eter to |
|00005360| 74 68 65 20 4c 4f 4e 47 | 49 4e 54 2e 0d 00 00 06 |the LONG|INT.....|
|00005370| 00 00 09 00 00 16 00 06 | 20 20 20 20 7d 0d 00 06 |........| }...|
|00005380| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|00005390| 00 16 00 50 20 20 20 20 | 20 20 20 20 46 55 4e 43 |...P | FUNC|
|000053a0| 54 49 4f 4e 20 56 61 6c | 75 65 4f 66 45 78 70 72 |TION Val|ueOfExpr|
|000053b0| 65 73 73 69 6f 6e 28 70 | 61 72 61 6d 50 74 72 3a |ession(p|aramPtr:|
|000053c0| 20 58 43 6d 64 50 74 72 | 3b 20 69 6e 64 65 78 3a | XCmdPtr|; index:|
|000053d0| 20 69 6e 74 65 67 65 72 | 29 3a 20 4c 6f 6e 67 69 | integer|): Longi|
|000053e0| 6e 74 3b 0d 00 06 00 00 | 09 00 00 16 00 01 0d 00 |nt;.....|........|
|000053f0| 00 06 00 00 09 00 00 16 | 00 10 20 20 20 20 20 20 |........|.. |
|00005400| 20 20 20 20 20 20 56 41 | 52 0d 00 06 00 00 09 00 | VA|R.......|
|00005410| 00 16 00 21 20 20 20 20 | 20 20 20 20 20 20 20 20 |...! | |
|00005420| 20 20 20 20 74 65 6d 70 | 53 74 72 3a 20 53 74 72 | temp|Str: Str|
|00005430| 32 35 35 3b 0d 00 00 06 | 00 00 09 00 00 16 00 24 |255;....|.......$|
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005450| 74 65 6d 70 48 61 6e 64 | 6c 65 3a 20 48 61 6e 64 |tempHand|le: Hand|
|00005460| 6c 65 3b 0d 00 06 00 00 | 09 00 00 16 00 01 0d ff |le;.....|........|
|00005470| 00 06 00 00 09 00 00 16 | 00 12 20 20 20 20 20 20 |........|.. |
|00005480| 20 20 20 20 20 20 42 45 | 47 49 4e 0d 00 06 00 00 | BE|GIN.....|
|00005490| 09 00 00 16 00 48 20 20 | 20 20 20 20 20 20 20 20 |.....H | |
|000054a0| 20 20 20 20 20 20 5a 65 | 72 6f 54 6f 50 61 73 28 | Ze|roToPas(|
|000054b0| 70 61 72 61 6d 50 74 72 | 2c 20 70 61 72 61 6d 50 |paramPtr|, paramP|
|000054c0| 74 72 5e 2e 70 61 72 61 | 6d 73 5b 69 6e 64 65 78 |tr^.para|ms[index|
|000054d0| 5d 5e 2c 20 74 65 6d 70 | 53 74 72 29 3b 0d 00 06 |]^, temp|Str);...|
|000054e0| 00 00 09 00 00 16 00 3b | 20 20 20 20 20 20 20 20 |.......;| |
|000054f0| 20 20 20 20 20 20 20 20 | 74 65 6d 70 48 61 6e 64 | |tempHand|
|00005500| 6c 65 20 3a 3d 20 45 76 | 61 6c 45 78 70 72 28 70 |le := Ev|alExpr(p|
|00005510| 61 72 61 6d 50 74 72 2c | 20 74 65 6d 70 53 74 72 |aramPtr,| tempStr|
|00005520| 29 3b 0d 00 00 06 00 00 | 09 00 00 16 00 3b 20 20 |);......|.....; |
|00005530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5a 65 | | Ze|
|00005540| 72 6f 54 6f 50 61 73 28 | 70 61 72 61 6d 50 74 72 |roToPas(|paramPtr|
|00005550| 2c 20 74 65 6d 70 48 61 | 6e 64 6c 65 5e 2c 20 74 |, tempHa|ndle^, t|
|00005560| 65 6d 70 53 74 72 29 3b | 0d 00 00 06 00 00 09 00 |empStr);|........|
|00005570| 00 16 00 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |...* | |
|00005580| 20 20 20 20 44 69 73 70 | 6f 73 48 61 6e 64 6c 65 | Disp|osHandle|
|00005590| 28 74 65 6d 70 48 61 6e | 64 6c 65 29 3b 0d 00 06 |(tempHan|dle);...|
|000055a0| 00 00 09 00 00 16 00 43 | 20 20 20 20 20 20 20 20 |.......C| |
|000055b0| 20 20 20 20 20 20 20 20 | 56 61 6c 75 65 4f 66 45 | |ValueOfE|
|000055c0| 78 70 72 65 73 73 69 6f | 6e 20 3a 3d 20 53 74 72 |xpressio|n := Str|
|000055d0| 54 6f 4c 6f 6e 67 28 70 | 61 72 61 6d 50 74 72 2c |ToLong(p|aramPtr,|
|000055e0| 20 74 65 6d 70 53 74 72 | 29 3b 0d 00 00 06 00 00 | tempStr|);......|
|000055f0| 09 00 00 16 00 11 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005600| 20 20 45 4e 44 3b 0d 00 | 00 06 00 00 09 00 00 16 | END;..|........|
|00005610| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 47 20 20 |........|.....G |
|00005620| 20 20 20 20 20 20 46 55 | 4e 43 54 49 4f 4e 20 4c | FU|NCTION L|
|00005630| 6f 6e 67 54 6f 5a 65 72 | 6f 28 70 61 72 61 6d 50 |ongToZer|o(paramP|
|00005640| 74 72 3a 20 58 43 6d 64 | 50 74 72 3b 20 6c 6f 6e |tr: XCmd|Ptr; lon|
|00005650| 67 3a 20 4c 6f 6e 67 69 | 6e 74 29 3a 20 48 61 6e |g: Longi|nt): Han|
|00005660| 64 6c 65 3b 0d ff 00 06 | 00 00 09 00 00 16 00 01 |dle;....|........|
|00005670| 0d ff 00 06 00 00 09 00 | 00 16 00 10 20 20 20 20 |........|.... |
|00005680| 20 20 20 20 20 20 20 20 | 56 41 52 0d 00 06 00 00 | |VAR.....|
|00005690| 09 00 00 16 00 21 20 20 | 20 20 20 20 20 20 20 20 |.....! | |
|000056a0| 20 20 20 20 20 20 74 65 | 6d 70 53 74 72 3a 20 53 | te|mpStr: S|
|000056b0| 74 72 32 35 35 3b 0d ff | 00 06 00 00 09 00 00 16 |tr255;..|........|
|000056c0| 00 01 0d ff 00 06 00 00 | 09 00 00 16 00 12 20 20 |........|...... |
|000056d0| 20 20 20 20 20 20 20 20 | 20 20 42 45 47 49 4e 0d | | BEGIN.|
|000056e0| 00 06 00 00 09 00 00 16 | 00 34 20 20 20 20 20 20 |........|.4 |
|000056f0| 20 20 20 20 20 20 20 20 | 20 20 4c 6f 6e 67 54 6f | | LongTo|
|00005700| 53 74 72 28 70 61 72 61 | 6d 50 74 72 2c 20 6c 6f |Str(para|mPtr, lo|
|00005710| 6e 67 2c 20 74 65 6d 70 | 53 74 72 29 3b 0d 00 06 |ng, temp|Str);...|
|00005720| 00 00 09 00 00 16 00 3c | 20 20 20 20 20 20 20 20 |.......<| |
|00005730| 20 20 20 20 20 20 20 20 | 4c 6f 6e 67 54 6f 5a 65 | |LongToZe|
|00005740| 72 6f 20 3a 3d 20 50 61 | 73 54 6f 5a 65 72 6f 28 |ro := Pa|sToZero(|
|00005750| 70 61 72 61 6d 50 74 72 | 2c 20 74 65 6d 70 53 74 |paramPtr|, tempSt|
|00005760| 72 29 3b 0d 00 06 00 00 | 09 00 00 16 00 11 20 20 |r);.....|...... |
|00005770| 20 20 20 20 20 20 20 20 | 20 20 45 4e 44 3b 0d 00 | | END;..|
|00005780| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00005790| 09 00 00 16 00 51 20 20 | 20 20 20 20 20 20 50 52 |.....Q | PR|
|000057a0| 4f 43 45 44 55 52 45 20 | 53 65 74 47 6c 6f 62 61 |OCEDURE |SetGloba|
|000057b0| 6c 41 74 28 70 61 72 61 | 6d 50 74 72 3a 20 58 43 |lAt(para|mPtr: XC|
|000057c0| 6d 64 50 74 72 3b 20 69 | 6e 64 65 78 3a 20 69 6e |mdPtr; i|ndex: in|
|000057d0| 74 65 67 65 72 3b 20 6c | 6f 6e 67 3a 20 4c 6f 6e |teger; l|ong: Lon|
|000057e0| 67 69 6e 74 29 3b 0d 00 | 00 06 00 00 09 00 00 16 |gint);..|........|
|000057f0| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 10 20 20 |........|...... |
|00005800| 20 20 20 20 20 20 20 20 | 20 20 56 41 52 0d 00 06 | | VAR...|
|00005810| 00 00 09 00 00 16 00 24 | 20 20 20 20 20 20 20 20 |.......$| |
|00005820| 20 20 20 20 20 20 20 20 | 67 6c 6f 62 61 6c 4e 61 | |globalNa|
|00005830| 6d 65 3a 20 53 74 72 32 | 35 35 3b 0d 00 06 00 00 |me: Str2|55;.....|
|00005840| 09 00 00 16 00 1f 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005850| 20 20 20 20 20 20 68 4c | 6f 6e 67 3a 20 48 61 6e | hL|ong: Han|
|00005860| 64 6c 65 3b 0d 00 00 06 | 00 00 09 00 00 16 00 01 |dle;....|........|
|00005870| 0d 00 00 06 00 00 09 00 | 00 16 00 12 20 20 20 20 |........|.... |
|00005880| 20 20 20 20 20 20 20 20 | 42 45 47 49 4e 0d 00 06 | |BEGIN...|
|00005890| 00 00 09 00 00 16 00 4b | 20 20 20 20 20 20 20 20 |.......K| |
|000058a0| 20 20 20 20 20 20 20 20 | 5a 65 72 6f 54 6f 50 61 | |ZeroToPa|
|000058b0| 73 28 70 61 72 61 6d 50 | 74 72 2c 20 70 61 72 61 |s(paramP|tr, para|
|000058c0| 6d 50 74 72 5e 2e 70 61 | 72 61 6d 73 5b 69 6e 64 |mPtr^.pa|rams[ind|
|000058d0| 65 78 5d 5e 2c 20 67 6c | 6f 62 61 6c 4e 61 6d 65 |ex]^, gl|obalName|
|000058e0| 29 3b 0d 00 00 06 00 00 | 09 00 00 16 00 35 20 20 |);......|.....5 |
|000058f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 68 4c | | hL|
|00005900| 6f 6e 67 20 3a 3d 20 4c | 6f 6e 67 54 6f 5a 65 72 |ong := L|ongToZer|
|00005910| 6f 28 70 61 72 61 6d 50 | 74 72 2c 20 6c 6f 6e 67 |o(paramP|tr, long|
|00005920| 29 3b 0d 00 00 06 00 00 | 09 00 00 16 00 38 20 20 |);......|.....8 |
|00005930| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 53 65 | | Se|
|00005940| 74 47 6c 6f 62 61 6c 28 | 70 61 72 61 6d 50 74 72 |tGlobal(|paramPtr|
|00005950| 2c 20 67 6c 6f 62 61 6c | 4e 61 6d 65 2c 20 68 4c |, global|Name, hL|
|00005960| 6f 6e 67 29 3b 0d 00 06 | 00 00 09 00 00 16 00 25 |ong);...|.......%|
|00005970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005980| 44 69 73 70 6f 73 48 61 | 6e 64 6c 65 28 68 4c 6f |DisposHa|ndle(hLo|
|00005990| 6e 67 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 11 |ng);....|........|
|000059a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 4e 44 3b | | END;|
|000059b0| 0d ff 00 06 00 00 09 00 | 00 16 00 01 0d ff 00 06 |........|........|
|000059c0| 00 00 09 00 00 16 00 52 | 20 20 20 20 7b 20 54 68 |.......R| { Th|
|000059d0| 65 73 65 20 34 20 72 6f | 75 74 69 6e 65 73 20 61 |ese 4 ro|utines a|
|000059e0| 72 65 20 63 61 6c 6c 65 | 64 20 69 6e 20 61 63 63 |re calle|d in acc|
|000059f0| 6f 72 64 69 6e 67 20 74 | 6f 20 74 68 65 20 63 6f |ording t|o the co|
|00005a00| 6d 6d 61 6e 64 20 70 61 | 73 73 65 64 20 74 6f 20 |mmand pa|ssed to |
|00005a10| 74 68 65 20 58 43 4d 44 | 3a 0d 00 06 00 00 09 00 |the XCMD|:.......|
|00005a20| 00 16 00 01 0d ff 00 06 | 00 00 09 00 00 16 00 57 |........|.......W|
|00005a30| 20 20 20 20 20 20 20 20 | 49 6e 69 74 69 61 6c 69 | |Initiali|
|00005a40| 7a 65 20 2d 20 75 73 65 | 64 20 74 6f 20 69 6e 69 |ze - use|d to ini|
|00005a50| 74 69 61 6c 69 7a 65 20 | 6f 75 72 20 67 6c 6f 62 |tialize |our glob|
|00005a60| 61 6c 73 20 61 72 65 61 | 2e 20 41 35 49 6e 69 74 |als area|. A5Init|
|00005a70| 20 77 69 6c 6c 20 63 6c | 65 61 72 20 65 76 65 72 | will cl|ear ever|
|00005a80| 79 74 68 69 6e 67 0d 00 | 00 06 00 00 09 00 00 16 |ything..|........|
|00005a90| 00 56 20 20 20 20 20 20 | 20 20 20 20 20 20 74 6f |.V | to|
|00005aa0| 20 7a 65 72 6f 2c 20 61 | 6e 64 20 73 65 74 20 75 | zero, a|nd set u|
|00005ab0| 70 20 61 6e 79 20 70 72 | 65 2d 69 6e 69 74 69 61 |p any pr|e-initia|
|00005ac0| 6c 69 7a 65 64 20 76 61 | 72 69 61 62 6c 65 73 20 |lized va|riables |
|00005ad0| 69 66 20 77 65 20 77 72 | 6f 74 65 20 6f 75 72 20 |if we wr|ote our |
|00005ae0| 70 72 6f 67 72 61 6d 0d | 00 06 00 00 09 00 00 16 |program.|........|
|00005af0| 00 56 20 20 20 20 20 20 | 20 20 20 20 20 20 69 6e |.V | in|
|00005b00| 20 43 20 6f 72 20 41 73 | 73 65 6d 62 6c 79 2c 20 | C or As|sembly, |
|00005b10| 62 75 74 20 69 74 20 63 | 61 6e 27 74 20 64 6f 20 |but it c|an't do |
|00005b20| 65 76 65 72 79 74 68 69 | 6e 67 2e 20 46 6f 72 20 |everythi|ng. For |
|00005b30| 69 6e 73 74 61 6e 63 65 | 2c 20 69 6e 20 74 68 69 |instance|, in thi|
|00005b40| 73 20 58 43 4d 44 2c 0d | 00 06 00 00 09 00 00 16 |s XCMD,.|........|
|00005b50| 00 44 20 20 20 20 20 20 | 20 20 20 20 20 20 77 65 |.D | we|
|00005b60| 20 6e 65 65 64 20 74 6f | 20 63 72 65 61 74 65 20 | need to| create |
|00005b70| 61 20 68 61 6e 64 6c 65 | 20 74 6f 20 68 6f 6c 64 |a handle| to hold|
|00005b80| 20 6f 75 72 20 6c 69 73 | 74 20 6f 66 20 65 6e 74 | our lis|t of ent|
|00005b90| 72 69 65 73 2e 0d 00 06 | 00 00 09 00 00 16 00 54 |ries....|.......T|
|00005ba0| 20 20 20 20 20 20 20 20 | 41 64 64 41 6e 45 6e 74 | |AddAnEnt|
|00005bb0| 72 79 20 2d 20 54 61 6b | 65 73 20 74 68 65 20 76 |ry - Tak|es the v|
|00005bc0| 61 6c 75 65 20 72 65 70 | 72 65 73 65 6e 74 65 64 |alue rep|resented|
|00005bd0| 20 62 79 20 74 68 65 20 | 33 20 70 61 72 61 6d 65 | by the |3 parame|
|00005be0| 74 65 72 20 70 61 73 73 | 65 64 20 74 6f 20 75 73 |ter pass|ed to us|
|00005bf0| 20 62 79 0d 00 06 00 00 | 09 00 00 16 00 2f 20 20 | by.....|...../ |
|00005c00| 20 20 20 20 20 20 20 20 | 20 20 48 79 70 65 72 43 | | HyperC|
|00005c10| 61 72 64 20 61 6e 64 20 | 61 64 64 73 20 69 74 20 |ard and |adds it |
|00005c20| 74 6f 20 6f 75 72 20 6c | 69 73 74 2e 0d 00 00 06 |to our l|ist.....|
|00005c30| 00 00 09 00 00 16 00 54 | 20 20 20 20 20 20 20 20 |.......T| |
|00005c40| 53 6f 72 74 45 6e 74 72 | 69 65 73 20 2d 20 53 6f |SortEntr|ies - So|
|00005c50| 72 74 73 20 74 68 65 20 | 65 6e 74 72 69 65 73 20 |rts the |entries |
|00005c60| 77 65 20 68 61 76 65 20 | 73 6f 20 66 61 72 2e 20 |we have |so far. |
|00005c70| 43 6f 6e 76 65 72 74 73 | 20 74 68 65 6d 20 69 6e |Converts| them in|
|00005c80| 74 6f 20 61 20 73 74 72 | 69 6e 67 0d 00 06 00 00 |to a str|ing.....|
|00005c90| 09 00 00 16 00 44 20 20 | 20 20 20 20 20 20 20 20 |.....D | |
|00005ca0| 20 20 61 6e 64 20 74 65 | 6c 6c 73 20 48 79 70 65 | and te|lls Hype|
|00005cb0| 72 43 61 72 64 20 74 6f | 20 64 69 73 70 6c 61 79 |rCard to| display|
|00005cc0| 20 74 68 65 6d 20 69 6e | 20 74 68 65 20 6d 65 73 | them in| the mes|
|00005cd0| 73 61 67 65 20 62 6f 78 | 2e 0d 00 06 00 00 09 00 |sage box|........|
|00005ce0| 00 16 00 54 20 20 20 20 | 20 20 20 20 46 72 65 65 |...T | Free|
|00005cf0| 44 61 74 61 20 2d 20 57 | 65 20 6a 75 73 74 20 72 |Data - W|e just r|
|00005d00| 65 63 65 69 76 65 20 74 | 68 65 20 6d 65 73 73 61 |eceive t|he messa|
|00005d10| 67 65 20 73 61 79 69 6e | 67 20 74 68 61 74 20 77 |ge sayin|g that w|
|00005d20| 65 20 61 72 65 20 6e 65 | 76 65 72 20 67 6f 69 6e |e are ne|ver goin|
|00005d30| 67 20 74 6f 20 62 65 0d | 00 06 00 00 09 00 00 16 |g to be.|........|
|00005d40| 00 55 20 20 20 20 20 20 | 20 20 20 20 20 20 63 61 |.U | ca|
|00005d50| 6c 6c 65 64 20 61 67 61 | 69 6e 2e 20 54 68 65 72 |lled aga|in. Ther|
|00005d60| 65 66 6f 72 65 2c 20 77 | 65 20 6d 75 73 74 20 67 |efore, w|e must g|
|00005d70| 65 74 20 72 69 64 20 6f | 66 20 61 6e 79 20 6d 65 |et rid o|f any me|
|00005d80| 6d 6f 72 79 20 77 65 20 | 68 61 76 65 20 61 6c 6c |mory we |have all|
|00005d90| 6f 63 61 74 65 64 0d 00 | 00 06 00 00 09 00 00 16 |ocated..|........|
|00005da0| 00 1d 20 20 20 20 20 20 | 20 20 20 20 20 20 66 6f |.. | fo|
|00005db0| 72 20 6f 75 72 20 6f 77 | 6e 20 75 73 65 2e 0d 00 |r our ow|n use...|
|00005dc0| 00 06 00 00 09 00 00 16 | 00 06 20 20 20 20 7d 0d |........|.. }.|
|00005dd0| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00005de0| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00005df0| 00 1e 20 20 20 20 20 20 | 20 20 50 52 4f 43 45 44 |.. | PROCED|
|00005e00| 55 52 45 20 49 6e 69 74 | 69 61 6c 69 7a 65 3b 0d |URE Init|ialize;.|
|00005e10| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00005e20| 09 00 00 16 00 12 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005e30| 20 20 42 45 47 49 4e 0d | 00 06 00 00 09 00 00 16 | BEGIN.|........|
|00005e40| 00 36 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.6 | |
|00005e50| 20 20 67 45 6e 74 72 69 | 65 73 20 3a 3d 20 4c 6f | gEntri|es := Lo|
|00005e60| 6e 67 48 61 6e 64 6c 65 | 28 4e 65 77 48 61 6e 64 |ngHandle|(NewHand|
|00005e70| 6c 65 28 30 29 29 3b 0d | 00 06 00 00 09 00 00 16 |le(0));.|........|
|00005e80| 00 24 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.$ | |
|00005e90| 20 20 67 4e 75 6d 4f 66 | 45 6e 74 72 69 65 73 20 | gNumOf|Entries |
|00005ea0| 3a 3d 20 30 3b 0d 00 06 | 00 00 09 00 00 16 00 11 |:= 0;...|........|
|00005eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 45 4e 44 3b | | END;|
|00005ec0| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00005ed0| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|00005ee0| 00 16 00 31 20 20 20 20 | 20 20 20 20 50 52 4f 43 |...1 | PROC|
|00005ef0| 45 44 55 52 45 20 41 64 | 64 41 6e 45 6e 74 72 79 |EDURE Ad|dAnEntry|
|00005f00| 28 70 61 72 61 6d 50 74 | 72 3a 20 58 43 6d 64 50 |(paramPt|r: XCmdP|
|00005f10| 74 72 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 01 |tr);....|........|
|00005f20| 0d 00 00 06 00 00 09 00 | 00 16 00 10 20 20 20 20 |........|.... |
|00005f30| 20 20 20 20 20 20 20 20 | 56 41 52 0d 00 06 00 00 | |VAR.....|
|00005f40| 09 00 00 16 00 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00005f50| 20 20 20 20 20 20 6f 75 | 72 41 35 3a 20 4c 6f 6e | ou|rA5: Lon|
|00005f60| 67 69 6e 74 3b 0d 00 06 | 00 00 09 00 00 16 00 21 |gint;...|.......!|
|00005f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f80| 74 65 6d 70 53 74 72 3a | 20 53 74 72 32 35 35 3b |tempStr:| Str255;|
|00005f90| 0d 00 00 06 00 00 09 00 | 00 16 00 1f 20 20 20 20 |........|.... |
|00005fa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 65 6d 70 | | temp|
|00005fb0| 3a 20 4c 6f 6e 67 69 6e | 74 3b 0d 00 00 06 00 00 |: Longin|t;......|
|00005fc0| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00005fd0| 00 10 00 00 00 00 00 00 | f5 6f 41 f5 2f 0d 00 06 |........|.oA./...|
|00005fe0| 00 00 09 00 00 16 00 00 | 09 00 00 16 00 29 20 20 |........|.....) |
|00005ff0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 75 | | ou|
|00006000| 72 41 35 20 3a 3d 20 53 | 65 74 41 35 28 67 48 6f |rA5 := S|etA5(gHo|
|00006010| 73 74 41 35 29 3b 0d 00 | 00 06 00 00 09 00 00 16 |stA5);..|........|
|00006020| 00 42 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.B | |
|00006030| 20 20 74 65 6d 70 20 3a | 3d 20 56 61 6c 75 65 4f | temp :|= ValueO|
|00006040| 66 45 78 70 72 65 73 73 | 69 6f 6e 28 70 61 72 61 |fExpress|ion(para|
|00006050| 6d 50 74 72 2c 20 6b 45 | 6e 74 72 79 49 6e 64 65 |mPtr, kE|ntryInde|
|00006060| 78 29 3b 0d 00 06 00 00 | 09 00 00 16 00 27 20 20 |x);.....|.....' |
|00006070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6f 75 | | ou|
|00006080| 72 41 35 20 3a 3d 20 53 | 65 74 41 35 28 6f 75 72 |rA5 := S|etA5(our|
|00006090| 41 35 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 01 |A5);....|........|
|000060a0| 0d 00 00 06 00 00 09 00 | 00 16 00 4a 20 20 20 20 |........|...J |
|000060b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 53 65 74 48 | | SetH|
|000060c0| 61 6e 64 6c 65 53 69 7a | 65 28 48 61 6e 64 6c 65 |andleSiz|e(Handle|
|000060d0| 28 67 45 6e 74 72 69 65 | 73 29 2c 20 28 67 4e 75 |(gEntrie|s), (gNu|
|000060e0| 6d 4f 66 45 6e 74 72 69 | 65 73 20 2b 20 31 29 20 |mOfEntri|es + 1) |
|000060f0| 2a 20 34 29 3b 0d 00 06 | 00 00 09 00 00 16 00 1e |* 4);...|........|
|00006100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006110| 7b 24 50 55 53 48 7d 20 | 7b 24 52 2d 7d 0d 00 06 |{$PUSH} |{$R-}...|
|00006120| 00 00 09 00 00 16 00 33 | 20 20 20 20 20 20 20 20 |.......3| |
|00006130| 20 20 20 20 20 20 20 20 | 67 45 6e 74 72 69 65 73 | |gEntries|
|00006140| 5e 5e 5b 67 4e 75 6d 4f | 66 45 6e 74 72 69 65 73 |^^[gNumO|fEntries|
|00006150| 5d 20 3a 3d 20 74 65 6d | 70 3b 0d 00 00 06 00 00 |] := tem|p;......|
|00006160| 09 00 00 16 00 17 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00006170| 20 20 20 20 20 20 7b 24 | 50 4f 50 7d 0d 00 00 06 | {$|POP}....|
|00006180| 00 00 09 00 00 16 00 34 | 20 20 20 20 20 20 20 20 |.......4| |
|00006190| 20 20 20 20 20 20 20 20 | 67 4e 75 6d 4f 66 45 6e | |gNumOfEn|
|000061a0| 74 72 69 65 73 20 3a 3d | 20 67 4e 75 6d 4f 66 45 |tries :=| gNumOfE|
|000061b0| 6e 74 72 69 65 73 20 2b | 20 31 3b 0d 00 06 00 00 |ntries +| 1;.....|
|000061c0| 09 00 00 16 00 11 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|000061d0| 20 20 45 4e 44 3b 0d 00 | 00 06 00 00 09 00 00 16 | END;..|........|
|000061e0| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 01 0d 00 |........|........|
|000061f0| 00 06 00 00 09 00 00 16 | 00 32 20 20 20 20 20 20 |........|.2 |
|00006200| 20 20 50 52 4f 43 45 44 | 55 52 45 20 53 6f 72 74 | PROCED|URE Sort|
|00006210| 45 6e 74 72 69 65 73 28 | 70 61 72 61 6d 50 74 72 |Entries(|paramPtr|
|00006220| 3a 20 58 43 6d 64 50 74 | 72 29 3b 0d 00 06 00 00 |: XCmdPt|r);.....|
|00006230| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00006240| 00 10 20 20 20 20 20 20 | 20 20 20 20 20 20 56 41 |.. | VA|
|00006250| 52 0d 00 06 00 00 09 00 | 00 16 00 20 20 20 20 20 |R.......|... |
|00006260| 20 20 20 20 20 20 20 20 | 20 20 20 20 6f 75 72 41 | | ourA|
|00006270| 35 3a 20 4c 6f 6e 67 69 | 6e 74 3b 0d 00 06 00 00 |5: Longi|nt;.....|
|00006280| 09 00 00 16 00 1f 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00006290| 20 20 20 20 20 20 69 2c | 20 6a 3a 20 69 6e 74 65 | i,| j: inte|
|000062a0| 67 65 72 3b 0d 00 00 06 | 00 00 09 00 00 16 00 21 |ger;....|.......!|
|000062b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000062c0| 66 75 6c 6c 53 74 72 3a | 20 53 74 72 32 35 35 3b |fullStr:| Str255;|
|000062d0| 0d 00 00 06 00 00 09 00 | 00 16 00 21 20 20 20 20 |........|...! |
|000062e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 65 6d 70 | | temp|
|000062f0| 53 74 72 3a 20 53 74 72 | 32 35 35 3b 0d 00 00 06 |Str: Str|255;....|
|00006300| 00 00 09 00 00 16 00 1f | 20 20 20 20 20 20 20 20 |........| |
|00006310| 20 20 20 20 20 20 20 20 | 74 65 6d 70 3a 20 4c 6f | |temp: Lo|
|00006320| 6e 67 69 6e 74 3b 0d 00 | 00 06 00 00 09 00 00 16 |ngint;..|........|
|00006330| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 12 20 20 |........|...... |
|00006340| 20 20 20 20 20 20 20 20 | 20 20 42 45 47 49 4e 0d | | BEGIN.|
|00006350| 00 06 00 00 09 00 00 16 | 00 30 20 20 20 20 20 20 |........|.0 |
|00006360| 20 20 20 20 20 20 20 20 | 20 20 49 46 20 67 4e 75 | | IF gNu|
|00006370| 6d 4f 66 45 6e 74 72 69 | 65 73 20 3e 20 31 20 54 |mOfEntri|es > 1 T|
|00006380| 48 45 4e 20 42 45 47 49 | 4e 0d 00 06 00 00 09 00 |HEN BEGI|N.......|
|00006390| 00 16 00 3d 20 20 20 20 | 20 20 20 20 20 20 20 20 |...= | |
|000063a0| 20 20 20 20 20 20 20 20 | 46 4f 52 20 69 20 3a 3d | |FOR i :=|
|000063b0| 20 30 20 54 4f 20 67 4e | 75 6d 4f 66 45 6e 74 72 | 0 TO gN|umOfEntr|
|000063c0| 69 65 73 20 2d 20 32 20 | 44 4f 20 42 45 47 49 4e |ies - 2 |DO BEGIN|
|000063d0| 0d 00 00 06 00 00 09 00 | 00 16 00 45 20 20 20 20 |........|...E |
|000063e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000063f0| 20 20 20 20 46 4f 52 20 | 6a 20 3a 3d 20 69 20 2b | FOR |j := i +|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.